Mercurial > minori
comparison src/include/config.h @ 7:07a9095eaeed
Update
Refactored some code, moved some around
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 24 Aug 2023 23:11:38 -0400 |
parents | 1d82f6e04d7d |
children |
comparison
equal
deleted
inserted
replaced
6:1d82f6e04d7d | 7:07a9095eaeed |
---|---|
1 #ifndef __config_h | 1 #ifndef __config_h |
2 #define __config_h | 2 #define __config_h |
3 /* This should be moved to anime_list.h, but unfortunately | 3 enum AnimeTitleLanguage { |
4 #include-ing anime_list.h in this file causes a shitstorm for | 4 ROMAJI, |
5 whatever reason, so I'll just leave it here */ | 5 NATIVE, |
6 ENGLISH | |
7 }; | |
8 | |
6 enum AnimeListServices { | 9 enum AnimeListServices { |
7 NONE, | 10 NONE, |
8 ANILIST, | 11 ANILIST, |
9 NB_SERVICES | 12 NB_SERVICES |
10 }; | 13 }; |
11 | 14 |
12 /* todo: make this a class enum */ | |
13 enum Themes { | 15 enum Themes { |
14 LIGHT, | 16 LIGHT, |
15 DARK, | 17 DARK, |
16 OS | 18 OS |
17 }; | 19 }; |
21 int Load(); | 23 int Load(); |
22 int Save(); | 24 int Save(); |
23 | 25 |
24 enum AnimeListServices service; | 26 enum AnimeListServices service; |
25 enum Themes theme; | 27 enum Themes theme; |
28 | |
29 struct { | |
30 enum AnimeTitleLanguage language; | |
31 bool display_aired_episodes; | |
32 bool display_available_episodes; | |
33 bool highlight_anime_if_available; | |
34 bool highlighted_anime_above_others; | |
35 } anime_list; | |
36 | |
26 struct { | 37 struct { |
27 std::string auth_token; | 38 std::string auth_token; |
28 std::string username; | 39 std::string username; |
29 int user_id; | 40 int user_id; |
30 } anilist; | 41 } anilist; |