cfg: fix early game detection for Polaris Chord and MFG (#551)

## Link to GitHub Issue, if one exists


## Description of change
Some parts of the UI (e.g., Card tab) rely on early auto detection of
the game, which relies on file hints and not the game code. Two games
(PC and MFG) rely on directory presence and not file presence.
This commit is contained in:
bicarus
2026-02-04 11:40:07 -08:00
committed by GitHub
parent f5a3caf536
commit 38d9939eb7
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -89,10 +89,11 @@ namespace overlay::windows {
// standalone configurator should look for file hints
if (cfg::CONFIGURATOR_STANDALONE) {
auto file_hints = games::get_game_file_hints(game_name);
const auto file_hints = games::get_game_file_hints(game_name);
if (file_hints) {
for (auto &file_hint : *file_hints) {
if (fileutils::file_exists(file_hint) ||
fileutils::dir_exists(file_hint) ||
fileutils::file_exists(std::filesystem::path("modules") / file_hint) ||
fileutils::file_exists(std::filesystem::path("contents") / file_hint) ||
fileutils::file_exists(MODULE_PATH / file_hint))
@@ -100,6 +101,7 @@ namespace overlay::windows {
this->games_selected = games_list.size() - 1;
this->games_selected_name = game_name;
eamuse_set_game(game_name);
break;
}
}
}