Mercurial > minori
view src/services/services.cpp @ 45:4b05bc7668eb
filesystem: split config path into dotpath and config, add anime db path
EVENTUALLY I'll get around to saving the anime db and list...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 22 Sep 2023 15:21:55 -0400 |
parents | 619cbd6e69f9 |
children | d8eb763e6661 |
line wrap: on
line source
#include "services/services.h" #include "core/session.h" #include "services/anilist.h" namespace Services { void Synchronize() { switch (session.config.service) { case Anime::Services::ANILIST: AniList::GetAnimeList(); break; default: break; } } bool Authorize() { switch (session.config.service) { case Anime::Services::ANILIST: return AniList::AuthorizeUser(); default: return true; } } }; // namespace Services