From: notaz Date: Wed, 21 Nov 2012 22:48:51 +0000 (+0200) Subject: frontend: allow sstates without cd img X-Git-Tag: r17~7 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea66e8840b75b0284f192e6fa068857b91ef08eb;p=pcsx_rearmed.git frontend: allow sstates without cd img --- diff --git a/frontend/main.c b/frontend/main.c index f5da18b7..29d2c257 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -586,6 +586,12 @@ int main(int argc, char *argv[]) } } + if (loadst_f) { + int ret = LoadState(loadst_f); + printf("%s state file: %s\n", ret ? "failed to load" : "loaded", loadst_f); + ready_to_go |= ret == 0; + } + if (ready_to_go) { menu_prepare_emu(); @@ -594,10 +600,6 @@ int main(int argc, char *argv[]) int ret = emu_load_state(loadst - 1); printf("%s state %d\n", ret ? "failed to load" : "loaded", loadst); } - if (loadst_f) { - int ret = LoadState(loadst_f); - printf("%s state file: %s\n", ret ? "failed to load" : "loaded", loadst_f); - } } else menu_loop();