main.c: load savestate after prepare
authornotaz <notasas@gmail.com>
Thu, 10 Feb 2011 22:31:33 +0000 (00:31 +0200)
committernotaz <notasas@gmail.com>
Fri, 11 Feb 2011 22:08:12 +0000 (00:08 +0200)
Makefile
frontend/main.c

index 89fc2a9..63241e5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -134,7 +134,7 @@ clean_plugins:
 
 PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh
 
-VER ?= $(shell git describe --abbrev=0 master)
+VER ?= $(shell git describe master)
 
 rel: pcsx $(PLUGINS) \
                pandora/pcsx.sh pandora/pcsx.pxml pandora/pcsx.png \
index 64a16d3..61f023f 100644 (file)
@@ -288,14 +288,15 @@ int main(int argc, char *argv[])
                }
        }
 
-       // If a state has been specified, then load that
-       if (loadst) {
-               int ret = emu_load_state(loadst - 1);
-               printf("%s state %d\n", ret ? "failed to load" : "loaded", loadst);
-       }
-
-       if (ready_to_go)
+       if (ready_to_go) {
                menu_prepare_emu();
+
+               // If a state has been specified, then load that
+               if (loadst) {
+                       int ret = emu_load_state(loadst - 1);
+                       printf("%s state %d\n", ret ? "failed to load" : "loaded", loadst);
+               }
+       }
        else
                menu_loop();