mirror of
https://github.com/libretro/pcsx2.git
synced 2025-02-14 22:49:50 +00:00
gs: fix freeze on close all windows
This commit is contained in:
parent
7597ac12b6
commit
483f28044b
@ -36,6 +36,8 @@
|
|||||||
#include "Recording/InputRecordingControls.h"
|
#include "Recording/InputRecordingControls.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern std::atomic_bool init_gspanel;
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
wxMenu* MainEmuFrame::MakeStatesSubMenu(int baseid, int loadBackupId) const
|
wxMenu* MainEmuFrame::MakeStatesSubMenu(int baseid, int loadBackupId) const
|
||||||
{
|
{
|
||||||
@ -154,6 +156,10 @@ bool MainEmuFrame::Destroy()
|
|||||||
//
|
//
|
||||||
void MainEmuFrame::OnCloseWindow(wxCloseEvent& evt)
|
void MainEmuFrame::OnCloseWindow(wxCloseEvent& evt)
|
||||||
{
|
{
|
||||||
|
// the main thread is busy suspending everything, so let's not try to call it
|
||||||
|
// when closing the emulator
|
||||||
|
init_gspanel = false;
|
||||||
|
|
||||||
if (IsBeingDeleted())
|
if (IsBeingDeleted())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user