Mercurial > minori
view include/core/config.h @ 114:ab191e28e69d
*: add initial torrent stuff
WOAH!
these checkboxes are a pain in my fucking ass
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 07 Nov 2023 08:03:42 -0500 |
parents | 2004b41d4a59 |
children | 254b1d2b7096 |
line wrap: on
line source
#ifndef __core__config_h #define __core__config_h #include "core/anime.h" #include "gui/theme.h" #include "gui/locale.h" class Config { public: int Load(); int Save(); Anime::Services service; Theme::Theme theme; Locale::Locale locale; struct { public: Anime::TitleLanguage language; bool display_aired_episodes; bool display_available_episodes; bool highlight_anime_if_available; bool highlighted_anime_above_others; } anime_list; struct { public: std::string auth_token; std::string username; int user_id; } anilist; }; #define WIDEIFY_EX(x) L##x #define WIDEIFY(x) WIDEIFY_EX(x) #if (defined(WIN32) || defined(MACOSX)) #define CONFIG_DIR "Minori" #else #define 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 #endif // __core__config_h