5 * This work is licensed under the terms of MAME license.
6 * See COPYING file in the top-level directory.
14 #include "../common/menu.h"
15 #include "../common/emu.h"
16 #include "../common/config.h"
17 #include "../common/lprintf.h"
29 engineState = atoi(rom_fname_reload);
39 emu_prepareDefaultConfig();
41 config_readlrom(PicoConfigFile);
45 // moved to emu_Loop(), after CPU clock change..
48 engineState = PGS_Menu;
58 strcpy(rom_fname_reload, rom_fname_loaded);
59 engineState = PGS_ReloadRom;
64 if (emu_reload_rom(rom_fname_reload)) {
65 engineState = PGS_Running;
66 if (mp3_last_error != 0)
67 engineState = PGS_Menu; // send to menu to display mp3 error
69 lprintf("PGS_ReloadRom == 0\n");
70 engineState = PGS_Menu;
75 while (engineState == PGS_Suspending)
80 psp_unhandled_suspend = 0;
83 engineState = engineStateSuspend;
87 engineState = PGS_Running;
90 if (psp_unhandled_suspend) {
91 psp_unhandled_suspend = 0;
106 lprintf("engine got into unknown state (%i), exitting\n", engineState);