|
|
@ -1271,6 +1271,7 @@ void GMainWindow::ConnectWidgetEvents() {
|
|
|
|
connect(game_list, &GameList::ShowList, this, &GMainWindow::OnGameListShowList);
|
|
|
|
connect(game_list, &GameList::ShowList, this, &GMainWindow::OnGameListShowList);
|
|
|
|
connect(game_list, &GameList::PopulatingCompleted,
|
|
|
|
connect(game_list, &GameList::PopulatingCompleted,
|
|
|
|
[this] { multiplayer_state->UpdateGameList(game_list->GetModel()); });
|
|
|
|
[this] { multiplayer_state->UpdateGameList(game_list->GetModel()); });
|
|
|
|
|
|
|
|
connect(game_list, &GameList::SaveConfig, this, &GMainWindow::OnSaveConfig);
|
|
|
|
|
|
|
|
|
|
|
|
connect(game_list, &GameList::OpenPerGameGeneralRequested, this,
|
|
|
|
connect(game_list, &GameList::OpenPerGameGeneralRequested, this,
|
|
|
|
&GMainWindow::OnGameListOpenPerGameProperties);
|
|
|
|
&GMainWindow::OnGameListOpenPerGameProperties);
|
|
|
@ -2654,6 +2655,8 @@ void GMainWindow::OnGameListAddDirectory() {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
LOG_WARNING(Frontend, "Selected directory is already in the game list");
|
|
|
|
LOG_WARNING(Frontend, "Selected directory is already in the game list");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OnSaveConfig();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GMainWindow::OnGameListShowList(bool show) {
|
|
|
|
void GMainWindow::OnGameListShowList(bool show) {
|
|
|
@ -3015,8 +3018,10 @@ void GMainWindow::OnRestartGame() {
|
|
|
|
if (!system->IsPoweredOn()) {
|
|
|
|
if (!system->IsPoweredOn()) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Make a copy since BootGame edits game_path
|
|
|
|
// Make a copy since ShutdownGame edits game_path
|
|
|
|
BootGame(QString(current_game_path));
|
|
|
|
const auto current_game = QString(current_game_path);
|
|
|
|
|
|
|
|
ShutdownGame();
|
|
|
|
|
|
|
|
BootGame(current_game);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GMainWindow::OnPauseGame() {
|
|
|
|
void GMainWindow::OnPauseGame() {
|
|
|
@ -3380,6 +3385,7 @@ void GMainWindow::OnConfigureTas() {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else if (result == QDialog::Accepted) {
|
|
|
|
} else if (result == QDialog::Accepted) {
|
|
|
|
dialog.ApplyConfiguration();
|
|
|
|
dialog.ApplyConfiguration();
|
|
|
|
|
|
|
|
OnSaveConfig();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|