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(romFileName);
36 emu_prepareDefaultConfig();
38 config_readlrom(PicoConfigFile);
42 // moved to emu_Loop(), after CPU clock change..
45 engineState = PGS_Menu;
55 strcpy(romFileName, lastRomFile);
56 engineState = PGS_ReloadRom;
61 if (emu_ReloadRom()) {
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 || engineState == PGS_SuspendAck) {
73 if (engineState == PGS_Suspending)
74 engineState = PGS_SuspendAck;
80 engineState = PGS_Running;
83 if (psp_unhandled_suspend) {
97 lprintf("engine got into unknown state (%i), exitting\n", engineState);