From d350ea2ac1b3a4e332a92712bb36bab0e6f829a9 Mon Sep 17 00:00:00 2001 From: "SND\\ckain_cp" Date: Thu, 24 Oct 2013 14:11:49 +0000 Subject: GTK: when saving state check that plugins are opened like with load state. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87653 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- gui/GtkGui.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gui') 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) -- cgit v1.2.3