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");
37 emu_prepareDefaultConfig();
39 config_readlrom(PicoConfigFile);
43 // moved to emu_Loop(), after CPU clock change..
46 engineState = PGS_Menu;
56 strcpy(romFileName, lastRomFile);
57 engineState = PGS_ReloadRom;
62 if (emu_ReloadRom()) {
63 engineState = PGS_Running;
64 if (mp3_last_error != 0)
65 engineState = PGS_Menu; // send to menu to display mp3 error
67 lprintf("PGS_ReloadRom == 0\n");
68 engineState = PGS_Menu;
73 while (engineState == PGS_Suspending)
78 engineState = PGS_Running;
81 if (psp_unhandled_suspend) {
95 lprintf("engine got into unknown state (%i), exitting\n", engineState);