summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-10-24 14:11:49 +0000
committerSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-10-24 14:11:49 +0000
commitd350ea2ac1b3a4e332a92712bb36bab0e6f829a9 (patch)
tree399f58ac059fca25bb4ed81a3cde5b42b38206b0
parent40ed135b60ec6ee641f037730fbf376594160c88 (diff)
downloadpcsxr-d350ea2ac1b3a4e332a92712bb36bab0e6f829a9.tar.gz
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
-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)