refactor/main.cpp

Compiler errors with a couple different indentations in the file alongside me accidentally adding the LOG_INFO (which *did* compile for Linux, but was alerted by MSVC) either way, done

Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
Collecting
2025-10-30 05:38:52 +00:00
parent d6294e6b99
commit 981436bfc0

View File

@@ -2024,36 +2024,35 @@ void GMainWindow::BootGame(const QString& filename, Service::AM::FrontendAppletP
system->ApplySettings(); system->ApplySettings();
// Final Fantasy Tactics requires single-core mode to boot properly // Final Fantasy Tactics requires single-core mode to boot properly
if (title_id == UICommon::TitleID::FinalFantasyTactics) {
LOG_INFO(Frontend, "Applying workaround: forcing single-core mode for Final Fantasy Tactics");
if (title_id == 0x010038B015560000ULL) { if (title_id == 0x010038B015560000ULL) {
LOG_INFO(Frontend, "Applying workaround: forcing single-core mode for Final Fantasy Tactics");
Settings::values.use_multi_core.SetValue(false); Settings::values.use_multi_core.SetValue(false);
} }
}
Settings::LogSettings(); Settings::LogSettings();
if (UISettings::values.select_user_on_boot && !user_flag_cmd_line) { if (UISettings::values.select_user_on_boot && !user_flag_cmd_line) {
const Core::Frontend::ProfileSelectParameters parameters{ const Core::Frontend::ProfileSelectParameters parameters{
.mode = Service::AM::Frontend::UiMode::UserSelector, .mode = Service::AM::Frontend::UiMode::UserSelector,
.invalid_uid_list = {}, .invalid_uid_list = {},
.display_options = {}, .display_options = {},
.purpose = Service::AM::Frontend::UserSelectionPurpose::General, .purpose = Service::AM::Frontend::UserSelectionPurpose::General,
}; };
if (SelectAndSetCurrentUser(parameters) == false) { if (SelectAndSetCurrentUser(parameters) == false) {
return;
}
}
// If the user specifies -u (successfully) on the cmd line, don't prompt for a user on first
// game startup only. If the user stops emulation and starts a new one, go back to the expected
// behavior of asking.
user_flag_cmd_line = false;
if (!LoadROM(filename, params)) {
return; return;
} }
} }
// If the user specifies -u (successfully) on the cmd line, don't prompt for a user on first
// game startup only. If the user stops emulation and starts a new one, go back to the expected
// behavior of asking.
user_flag_cmd_line = false;
if (!LoadROM(filename, params)) {
return;
}
system->SetShuttingDown(false); system->SetShuttingDown(false);
game_list->setDisabled(true); game_list->setDisabled(true);