frontend: save last cdimg on successful select
authornotaz <notasas@gmail.com>
Wed, 15 Aug 2012 20:09:23 +0000 (23:09 +0300)
committernotaz <notasas@gmail.com>
Wed, 15 Aug 2012 20:57:12 +0000 (23:57 +0300)
otherwise it's wont save after crash, which can still happen

frontend/menu.c

index 3756c1a..7babfab 100644 (file)
@@ -1859,6 +1859,7 @@ static int romsel_run(void)
        }
 
        strcpy(last_selected_fname, rom_fname_reload);
        }
 
        strcpy(last_selected_fname, rom_fname_reload);
+       menu_do_last_cd_img(0);
        return 0;
 }
 
        return 0;
 }
 
@@ -2399,6 +2400,5 @@ void me_update_msg(const char *msg)
 
 void menu_finish(void)
 {
 
 void menu_finish(void)
 {
-       menu_do_last_cd_img(0);
        plat_cpu_clock_apply(cpu_clock_st);
 }
        plat_cpu_clock_apply(cpu_clock_st);
 }