Add Emu.HasGui() to properly hide Qt dialogs in no-gui mode

This commit is contained in:
Megamouse 2019-12-03 08:32:28 +01:00
parent 84f9911163
commit 46ca39ec4d
10 changed files with 26 additions and 10 deletions

View file

@ -14,6 +14,11 @@ s32 save_data_dialog::ShowSaveDataList(std::vector<SaveDataEntry>& save_entries,
return result;
}
if (!Emu.HasGui())
{
return -2;
}
// Fall back to front-end GUI
atomic_t<bool> dlg_result(false);
atomic_t<s32> selection;