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/lprintf.h"
26 engineState = atoi(romFileName);
34 lprintf("\nPicoDrive v" VERSION " " __DATE__ " " __TIME__ "\n");
39 // moved to emu_Loop(), after CPU clock change..
42 engineState = PGS_Menu;
52 strcpy(romFileName, currentConfig.lastRomFile);
53 engineState = PGS_ReloadRom;
58 if (emu_ReloadRom()) {
59 engineState = PGS_Running;
60 if (mp3_last_error != 0)
61 engineState = PGS_Menu; // send to menu to display mp3 error
63 lprintf("PGS_ReloadRom == 0\n");
64 engineState = PGS_Menu;
69 while (engineState == PGS_Suspending)
74 engineState = PGS_Running;
77 if (psp_unhandled_suspend) {
91 lprintf("engine got into unknown state (%i), exitting\n", engineState);