From 8f8926485e641efb187ff9ae11cef9d23d1e8982 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 8 Feb 2011 01:21:46 +0200 Subject: frontend: support ingame actions (state load and such) --- maemo/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'maemo/main.c') diff --git a/maemo/main.c b/maemo/main.c index 80919ac..f797c12 100644 --- a/maemo/main.c +++ b/maemo/main.c @@ -173,11 +173,8 @@ int maemo_main(int argc, char **argv) // If a state has been specified, then load that if (loadst) { - char state_filename[MAXPATHLEN]; - int ret = get_state_filename(state_filename, sizeof(state_filename), loadst - 1); - if (ret == 0) - ret = LoadState(state_filename); - printf("%s state %s\n", ret ? "failed to load" : "loaded", state_filename); + int ret = emu_load_state(loadst - 1); + printf("%s state %d\n", ret ? "failed to load" : "loaded", loadst); } if (ready_to_go) -- cgit v1.2.3