view include/core/config.h @ 25:d9a93499717a

ci/win32: fix stupid missing double quote :')
author Paper <mrpapersonic@gmail.com>
date Tue, 19 Sep 2023 23:59:20 -0400
parents fc1bf97c528b
children 2743011a6042
line wrap: on
line source

#ifndef __core__config_h
#define __core__config_h
#include "core/anime.h"

enum class Themes {
	LIGHT,
	DARK,
	OS // AKA "Default"
};

class Config {
	public:
		int Load();
		int Save();

		Anime::Services service;
		Themes theme;

		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 CONFIG_DIR		"minori"
#define CONFIG_NAME		"config.json"
#define MAX_LINE_LENGTH 256
#endif // __core__config_h