gs: introspect gs state directly

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech authored and Kojin committed 2021-07-03 18:16:11 -04:00
1 parent fa9b30fa9e
commit 70dde551e3
4 files changed
+9 -8

No files matched your search

+2
View File
@@ -1965,3 +1965,5 @@ struct GSErrorGlVertexArrayTooSmall : GSError
};
extern GSApp theApp;
extern bool gsopen_done;
+1 -1
View File
@@ -868,7 +868,7 @@ void Pcsx2App::OpenGsPanel()
gsFrame->SetSize( oldsize );
}
//TODO: MAKE SURE GS IS CLOSED HERE
pxAssertDev( !gsopen_done, "GS Plugin must be closed prior to opening a new Gs Panel!" );
#ifdef __WXGTK__
// The x window/display are actually very deeper in the widget. You need both display and window
+1 -1
View File
@@ -688,7 +688,7 @@ void GSFrame::AppStatusEvent_OnSettingsApplied()
if( g_Conf->GSWindow.CloseOnEsc )
{
if (IsShown() /*&& TODO: CHECK IS GS IS CLOSED */)
if (IsShown() && !gsopen_done)
Show( false );
}
}
+5 -6
View File
@@ -400,12 +400,11 @@ namespace Implementations
return;
if (renderswitch_delay == 0)
{
/* TODO: reimplement this:
* ScopedCoreThreadPause paused_core(new SysExecEvent_SaveSinglePlugin(PluginId_GS));
* renderswitch = !renderswitch;
* paused_core.AllowResume();
* renderswitch_delay = -1;
*/
ScopedCoreThreadPause paused_core();
GSfreeze();
renderswitch = !renderswitch;
paused_core.AllowResume();
renderswitch_delay = -1;
}
}