diff options
Diffstat (limited to 'frontend/main.c')
-rw-r--r-- | frontend/main.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/frontend/main.c b/frontend/main.c index 64a16d3..61f023f 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -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(); |