mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-16 16:21:02 +00:00
Release ppu thread before ShowSaveDataDialog, Fixes #4031
This commit is contained in:
parent
ce8c92262d
commit
b7da3ea5cd
@ -1,5 +1,6 @@
|
|||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "Emu/System.h"
|
#include "Emu/System.h"
|
||||||
|
#include "Emu/Cell/lv2/sys_sync.h"
|
||||||
#include "Emu/Cell/PPUModule.h"
|
#include "Emu/Cell/PPUModule.h"
|
||||||
#include "Emu/Cell/Modules/cellSysutil.h"
|
#include "Emu/Cell/Modules/cellSysutil.h"
|
||||||
|
|
||||||
@ -373,9 +374,15 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
|||||||
|
|
||||||
while (funcList)
|
while (funcList)
|
||||||
{
|
{
|
||||||
|
// Yield
|
||||||
|
lv2_obj::sleep(ppu);
|
||||||
|
|
||||||
// Display Save Data List asynchronously in the GUI thread.
|
// Display Save Data List asynchronously in the GUI thread.
|
||||||
selected = Emu.GetCallbacks().get_save_dialog()->ShowSaveDataList(save_entries, focused, operation, listSet);
|
selected = Emu.GetCallbacks().get_save_dialog()->ShowSaveDataList(save_entries, focused, operation, listSet);
|
||||||
|
|
||||||
|
// Reschedule
|
||||||
|
ppu.check_state();
|
||||||
|
|
||||||
// UI returns -1 for new save games
|
// UI returns -1 for new save games
|
||||||
if (selected == -1)
|
if (selected == -1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user