citra_qt: ask for confirmation when changing games from the game list (#6186)

Co-authored-by: nobody <nobody>
This commit is contained in:
foghawk 2022-11-11 23:09:53 -06:00 committed by GitHub
parent bb05d8c12a
commit a76ef97f15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1320,8 +1320,10 @@ void GMainWindow::UpdateSaveStates() {
} }
void GMainWindow::OnGameListLoadFile(QString game_path) { void GMainWindow::OnGameListLoadFile(QString game_path) {
if (ConfirmChangeGame()) {
BootGame(game_path); BootGame(game_path);
} }
}
void GMainWindow::OnGameListOpenFolder(u64 data_id, GameListOpenTarget target) { void GMainWindow::OnGameListOpenFolder(u64 data_id, GameListOpenTarget target) {
std::string path; std::string path;