6 #include "../common/menu.h"
7 #include "../common/emu.h"
8 #include "../common/lprintf.h"
24 engineState = atoi(romFileName);
32 lprintf("\nPicoDrive v" VERSION " " __DATE__ " " __TIME__ "\n");
37 // moved to emu_Loop(), after CPU clock change..
40 engineState = PGS_Menu;
50 strcpy(romFileName, currentConfig.lastRomFile);
51 engineState = PGS_ReloadRom;
56 if (emu_ReloadRom()) {
57 engineState = PGS_Running;
58 if (mp3_last_error != 0)
59 engineState = PGS_Menu; // send to menu to display mp3 error
61 lprintf("PGS_ReloadRom == 0\n");
62 engineState = PGS_Menu;
67 engineState = PGS_Running;
80 lprintf("engine got into unknown state (%i), exitting\n", engineState);