Mercurial > minori
diff src/include/config.h @ 2:23d0d9319a00
Update
Also converted everything to LF from CRLF
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 12 Aug 2023 03:16:26 -0400 |
parents | 1ae666fdf9e2 |
children | 1d82f6e04d7d |
line wrap: on
line diff
--- a/src/include/config.h Tue Aug 08 19:49:15 2023 -0400 +++ b/src/include/config.h Sat Aug 12 03:16:26 2023 -0400 @@ -1,34 +1,34 @@ -#ifndef __config_h -#define __config_h -/* This should be moved to anime_list.h, but unfortunately - #include-ing anime_list.h in this file causes a shitstorm for - whatever reason, so I'll just leave it here */ -enum AnimeListServices { - NONE, - ANILIST -}; - -/* todo: make this a class enum */ -enum Themes { - LIGHT, - DARK, - OS -}; - -class Config { - public: - int Load(); - int Save(); - - enum AnimeListServices service; - enum Themes theme; - struct { - std::string auth_token; - std::string username; - int user_id; - } anilist; -}; -#define CONFIG_DIR "weeaboo" -#define CONFIG_NAME "config.json" -#define MAX_LINE_LENGTH 256 -#endif // __config_h +#ifndef __config_h +#define __config_h +/* This should be moved to anime_list.h, but unfortunately + #include-ing anime_list.h in this file causes a shitstorm for + whatever reason, so I'll just leave it here */ +enum AnimeListServices { + NONE, + ANILIST +}; + +/* todo: make this a class enum */ +enum Themes { + LIGHT, + DARK, + OS +}; + +class Config { + public: + int Load(); + int Save(); + + enum AnimeListServices service; + enum Themes theme; + struct { + std::string auth_token; + std::string username; + int user_id; + } anilist; +}; +#define CONFIG_DIR "weeaboo" +#define CONFIG_NAME "config.json" +#define MAX_LINE_LENGTH 256 +#endif // __config_h