Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/include/core/config.h Sun Nov 19 19:13:28 2023 -0500 +++ b/include/core/config.h Tue Jan 02 06:05:06 2024 -0500 @@ -28,6 +28,7 @@ struct { public: Anime::TitleLanguage language; + Anime::ScoreFormat score_format; bool display_aired_episodes; bool display_available_episodes; bool highlight_anime_if_available; @@ -58,23 +59,12 @@ } torrents; }; -#define WIDEIFY_EX(x) L##x -#define WIDEIFY(x) WIDEIFY_EX(x) - -/* only on these platforms keep this uppercase. - this will not remove compatibility with older - versions, since these platforms are case insensitive - (on macOS, only by default) */ #if (defined(WIN32) || defined(MACOSX)) -#define CONFIG_DIR "Minori" +constexpr std::string_view CONFIG_DIR = "Minori"; #else -#define CONFIG_DIR "minori" +constexpr std::string_view CONFIG_DIR = "minori"; #endif -#define CONFIG_WDIR WIDEIFY(CONFIG_DIR) -#define CONFIG_NAME "config.ini" -#define CONFIG_WNAME WIDEIFY(CONFIG_NAME) - -#define MAX_LINE_LENGTH 256 +constexpr std::string_view CONFIG_NAME = "config.ini"; #endif // __core__config_h