mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
handle empty callback returns
This commit is contained in:
parent
08c581947d
commit
8debdfcd09
6 changed files with 91 additions and 43 deletions
|
|
@ -538,7 +538,14 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
|||
lv2_obj::sleep(ppu);
|
||||
|
||||
// Display Save Data List asynchronously in the GUI thread.
|
||||
selected = Emu.GetCallbacks().get_save_dialog()->ShowSaveDataList(save_entries, focused, operation, listSet);
|
||||
if (auto save_dialog = Emu.GetCallbacks().get_save_dialog())
|
||||
{
|
||||
selected = save_dialog->ShowSaveDataList(save_entries, focused, operation, listSet);
|
||||
}
|
||||
else
|
||||
{
|
||||
selected = -2;
|
||||
}
|
||||
|
||||
// Reschedule
|
||||
if (ppu.check_state())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue