Mercurial > minori
comparison src/include/config.h @ 1:1ae666fdf9e2
*: initial commit
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Tue, 08 Aug 2023 19:49:15 -0400 |
| parents | |
| children | 23d0d9319a00 |
comparison
equal
deleted
inserted
replaced
| 0:5a76e1b94163 | 1:1ae666fdf9e2 |
|---|---|
| 1 #ifndef __config_h | |
| 2 #define __config_h | |
| 3 /* This should be moved to anime_list.h, but unfortunately | |
| 4 #include-ing anime_list.h in this file causes a shitstorm for | |
| 5 whatever reason, so I'll just leave it here */ | |
| 6 enum AnimeListServices { | |
| 7 NONE, | |
| 8 ANILIST | |
| 9 }; | |
| 10 | |
| 11 /* todo: make this a class enum */ | |
| 12 enum Themes { | |
| 13 LIGHT, | |
| 14 DARK, | |
| 15 OS | |
| 16 }; | |
| 17 | |
| 18 class Config { | |
| 19 public: | |
| 20 int Load(); | |
| 21 int Save(); | |
| 22 | |
| 23 enum AnimeListServices service; | |
| 24 enum Themes theme; | |
| 25 struct { | |
| 26 std::string auth_token; | |
| 27 std::string username; | |
| 28 int user_id; | |
| 29 } anilist; | |
| 30 }; | |
| 31 #define CONFIG_DIR "weeaboo" | |
| 32 #define CONFIG_NAME "config.json" | |
| 33 #define MAX_LINE_LENGTH 256 | |
| 34 #endif // __config_h |
