Mercurial > minori
comparison src/track/media.cc @ 149:e41505d24733
players: filter out web browsers, they aren't even supported in animia yet
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 14 Nov 2023 13:40:11 -0500 |
parents | 6fdf0632c003 |
children | 8700806c2cc2 |
comparison
equal
deleted
inserted
replaced
148:aa4df5a84338 | 149:e41505d24733 |
---|---|
18 static bool GetCurrentlyPlayingResults(std::vector<animia::Result>& results) { | 18 static bool GetCurrentlyPlayingResults(std::vector<animia::Result>& results) { |
19 std::vector<animia::Player> players; | 19 std::vector<animia::Player> players; |
20 | 20 |
21 players.reserve(session.config.recognition.players.size()); | 21 players.reserve(session.config.recognition.players.size()); |
22 for (const auto& [enabled, player] : session.config.recognition.players) | 22 for (const auto& [enabled, player] : session.config.recognition.players) |
23 if (enabled) | 23 if (enabled && player.type == animia::PlayerType::Default) |
24 players.push_back(player); | 24 players.push_back(player); |
25 | 25 |
26 if (!animia::GetResults(players, results)) | 26 if (!animia::GetResults(players, results)) |
27 return false; | 27 return false; |
28 | 28 |