1 // (c) Copyright 2007 notaz, All rights reserved.
2 // Free for non-commercial use.
4 // For commercial use, separate licencing terms must be obtained.
11 #include "../common/menu.h"
12 #include "../common/emu.h"
13 #include "../common/config.h"
14 #include "../common/lprintf.h"
26 engineState = atoi(rom_fname_reload);
36 emu_prepareDefaultConfig();
38 config_readlrom(PicoConfigFile);
42 // moved to emu_Loop(), after CPU clock change..
45 engineState = PGS_Menu;
55 strcpy(rom_fname_reload, rom_fname_loaded);
56 engineState = PGS_ReloadRom;
61 if (emu_reload_rom(rom_fname_reload)) {
62 engineState = PGS_Running;
63 if (mp3_last_error != 0)
64 engineState = PGS_Menu; // send to menu to display mp3 error
66 lprintf("PGS_ReloadRom == 0\n");
67 engineState = PGS_Menu;
72 while (engineState == PGS_Suspending)
77 psp_unhandled_suspend = 0;
80 engineState = engineStateSuspend;
84 engineState = PGS_Running;
87 if (psp_unhandled_suspend) {
88 psp_unhandled_suspend = 0;
103 lprintf("engine got into unknown state (%i), exitting\n", engineState);