comparison include/core/config.h @ 221:53211cb1e7f5

library: add initial library stuff nice
author Paper <paper@paper.us.eu.org>
date Mon, 08 Jan 2024 13:21:08 -0500
parents 649786bae914
children f784b5b1914c
comparison
equal deleted inserted replaced
220:79a87a6dd39d 221:53211cb1e7f5
24 Anime::Services service; 24 Anime::Services service;
25 Theme::Theme theme; 25 Theme::Theme theme;
26 Locale::Locale locale; 26 Locale::Locale locale;
27 27
28 struct { 28 struct {
29 public: 29 Anime::TitleLanguage language;
30 Anime::TitleLanguage language; 30 Anime::ScoreFormat score_format;
31 Anime::ScoreFormat score_format; 31 bool display_aired_episodes;
32 bool display_aired_episodes; 32 bool display_available_episodes;
33 bool display_available_episodes; 33 bool highlight_anime_if_available;
34 bool highlight_anime_if_available; 34 bool highlighted_anime_above_others;
35 bool highlighted_anime_above_others;
36 } anime_list; 35 } anime_list;
37 36
38 /* these should preferably be in an 37 /* these should preferably be in an
39 "auth" struct... */ 38 "auth" struct... */
40 struct { 39 struct {
41 public: 40 struct {
42 struct { 41 std::string auth_token;
43 public: 42 std::string username;
44 std::string auth_token; 43 int user_id;
45 std::string username; 44 } anilist;
46 int user_id;
47 } anilist;
48 } auth; 45 } auth;
49 46
50 struct { 47 struct {
51 public: 48 bool detect_media_players;
52 bool detect_media_players; 49 std::vector<MediaPlayer> players;
53 std::vector<MediaPlayer> players;
54 } recognition; 50 } recognition;
55 51
56 struct { 52 struct {
57 public: 53 std::string feed_link;
58 std::string feed_link;
59 } torrents; 54 } torrents;
55
56 struct {
57 std::vector<std::string> paths;
58 } library;
60 }; 59 };
61 60
62 #if (defined(WIN32) || defined(MACOSX)) 61 #if (defined(WIN32) || defined(MACOSX))
63 constexpr std::string_view CONFIG_DIR = "Minori"; 62 constexpr std::string_view CONFIG_DIR = "Minori";
64 #else 63 #else