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"
27 engineState = atoi(romFileName);
35 lprintf("\nPicoDrive v" VERSION " " __DATE__ " " __TIME__ "\n");
38 emu_prepareDefaultConfig();
40 config_readlrom(PicoConfigFile);
44 // moved to emu_Loop(), after CPU clock change..
47 engineState = PGS_Menu;
57 strcpy(romFileName, lastRomFile);
58 engineState = PGS_ReloadRom;
63 if (emu_ReloadRom()) {
64 engineState = PGS_Running;
65 if (mp3_last_error != 0)
66 engineState = PGS_Menu; // send to menu to display mp3 error
68 lprintf("PGS_ReloadRom == 0\n");
69 engineState = PGS_Menu;
74 while (engineState == PGS_Suspending)
79 engineState = PGS_Running;
82 if (psp_unhandled_suspend) {
96 lprintf("engine got into unknown state (%i), exitting\n", engineState);