Mercurial > minori
comparison include/core/config.h @ 202:71832ffe425a
animia: re-add kvm fd source
this is all being merged from my wildly out-of-date laptop. SORRY!
in other news, I edited the CI file to install the wayland client
as well, so the linux CI build might finally get wayland stuff.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 02 Jan 2024 06:05:06 -0500 |
parents | 649786bae914 |
children | 53211cb1e7f5 |
comparison
equal
deleted
inserted
replaced
201:8f6f8dd2eb23 | 202:71832ffe425a |
---|---|
26 Locale::Locale locale; | 26 Locale::Locale locale; |
27 | 27 |
28 struct { | 28 struct { |
29 public: | 29 public: |
30 Anime::TitleLanguage language; | 30 Anime::TitleLanguage language; |
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; |
35 } anime_list; | 36 } anime_list; |
56 public: | 57 public: |
57 std::string feed_link; | 58 std::string feed_link; |
58 } torrents; | 59 } torrents; |
59 }; | 60 }; |
60 | 61 |
61 #define WIDEIFY_EX(x) L##x | |
62 #define WIDEIFY(x) WIDEIFY_EX(x) | |
63 | |
64 /* only on these platforms keep this uppercase. | |
65 this will not remove compatibility with older | |
66 versions, since these platforms are case insensitive | |
67 (on macOS, only by default) */ | |
68 #if (defined(WIN32) || defined(MACOSX)) | 62 #if (defined(WIN32) || defined(MACOSX)) |
69 #define CONFIG_DIR "Minori" | 63 constexpr std::string_view CONFIG_DIR = "Minori"; |
70 #else | 64 #else |
71 #define CONFIG_DIR "minori" | 65 constexpr std::string_view CONFIG_DIR = "minori"; |
72 #endif | 66 #endif |
73 | 67 |
74 #define CONFIG_WDIR WIDEIFY(CONFIG_DIR) | 68 constexpr std::string_view CONFIG_NAME = "config.ini"; |
75 #define CONFIG_NAME "config.ini" | |
76 #define CONFIG_WNAME WIDEIFY(CONFIG_NAME) | |
77 | |
78 #define MAX_LINE_LENGTH 256 | |
79 | 69 |
80 #endif // __core__config_h | 70 #endif // __core__config_h |