Mercurial > minori
comparison include/core/config.h @ 147:6fdf0632c003
track: use a bit of a more sane way to manage recognition
it also works with the new animia API
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 14 Nov 2023 13:19:40 -0500 |
parents | 275da698697d |
children | e41505d24733 |
comparison
equal
deleted
inserted
replaced
146:d8a61e7e2a36 | 147:6fdf0632c003 |
---|---|
2 #define __core__config_h | 2 #define __core__config_h |
3 | 3 |
4 #include "core/anime.h" | 4 #include "core/anime.h" |
5 #include "gui/theme.h" | 5 #include "gui/theme.h" |
6 #include "gui/locale.h" | 6 #include "gui/locale.h" |
7 | |
8 #include "animia/player.h" | |
9 | |
7 #include <string> | 10 #include <string> |
8 #include <vector> | 11 #include <vector> |
12 #include <utility> | |
9 | 13 |
10 class Config { | 14 class Config { |
11 public: | 15 public: |
12 int Load(); | 16 int Load(); |
13 int Save() const; | 17 int Save() const; |
38 } auth; | 42 } auth; |
39 | 43 |
40 struct { | 44 struct { |
41 public: | 45 public: |
42 bool detect_media_players; | 46 bool detect_media_players; |
43 //bool detect_streaming_media; | 47 std::vector<std::pair<bool, animia::Player>> players; |
44 } recognition; | 48 } recognition; |
45 | 49 |
46 struct { | 50 struct { |
47 public: | 51 public: |
48 std::string feed_link; | 52 std::string feed_link; |