Mercurial > minori
annotate src/services/services.cpp @ 44:619cbd6e69f9
filesystem: fix CreateDirectories function
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 22 Sep 2023 13:52:11 -0400 |
parents | cde8f67a7c7d |
children | d8eb763e6661 |
rev | line source |
---|---|
15 | 1 #include "services/services.h" |
10 | 2 #include "core/session.h" |
3 #include "services/anilist.h" | |
4 | |
5 namespace Services { | |
6 | |
7 void Synchronize() { | |
8 switch (session.config.service) { | |
9 case Anime::Services::ANILIST: AniList::GetAnimeList(); break; | |
10 default: break; | |
11 } | |
12 } | |
13 | |
44
619cbd6e69f9
filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents:
15
diff
changeset
|
14 bool Authorize() { |
10 | 15 switch (session.config.service) { |
44
619cbd6e69f9
filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents:
15
diff
changeset
|
16 case Anime::Services::ANILIST: |
619cbd6e69f9
filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents:
15
diff
changeset
|
17 return AniList::AuthorizeUser(); |
619cbd6e69f9
filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents:
15
diff
changeset
|
18 default: |
619cbd6e69f9
filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents:
15
diff
changeset
|
19 return true; |
10 | 20 } |
21 } | |
22 | |
44
619cbd6e69f9
filesystem: fix CreateDirectories function
Paper <mrpapersonic@gmail.com>
parents:
15
diff
changeset
|
23 }; // namespace Services |