From ea66e8840b75b0284f192e6fa068857b91ef08eb Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 22 Nov 2012 00:48:51 +0200 Subject: [PATCH] frontend: allow sstates without cd img --- frontend/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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(); -- 2.39.5