summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgui/GtkGui.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gui/GtkGui.c b/gui/GtkGui.c
index ab1fe639..ae9ab4d0 100755
--- a/gui/GtkGui.c
+++ b/gui/GtkGui.c
@@ -926,7 +926,7 @@ void state_load(gchar *state_filename) {
fclose(fp);
// If the window exists, then we are loading the state from within
- // within the PCSXR GUI. We need to initialise the plugins first
+ // the PCSXR GUI. We need to initialise the plugins first.
if (Window) {
destroy_main_window();
@@ -961,6 +961,17 @@ void state_load(gchar *state_filename) {
void state_save(gchar *state_filename) {
char Text[MAXPATHLEN + 20];
+ // If the window exists, then we are saving the state from within
+ // the PCSXR GUI. We need to initialise the plugins first.
+ if (Window) {
+ destroy_main_window();
+
+ if (OpenPlugins() == -1) {
+ SysRunGui();
+ return;
+ }
+ }
+
GPU_updateLace();
if (SaveState(state_filename) == 0)