Mercurial > minori
view src/include/config.h @ 6:1d82f6e04d7d
Update: add first parts to the settings dialog
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 16 Aug 2023 00:49:17 -0400 |
parents | 23d0d9319a00 |
children | 07a9095eaeed |
line wrap: on
line source
#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, NB_SERVICES }; /* 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