1 // (c) Copyright 2007 notaz, All rights reserved.
\r
2 // Free for non-commercial use.
\r
4 // For commercial use, separate licencing terms must be obtained.
\r
11 #include "../common/menu.h"
\r
12 #include "../common/emu.h"
\r
13 #include "../common/config.h"
\r
14 #include "version.h"
\r
17 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
\r
19 emu_prepareDefaultConfig();
\r
20 emu_ReadConfig(0, 0);
\r
21 config_readlrom(PicoConfigFile);
\r
22 giz_init(hInstance, hPrevInstance);
\r
26 engineState = PGS_Menu;
\r
30 switch (engineState)
\r
37 if (emu_reload_rom(romFileName))
\r
38 engineState = PGS_Running;
\r
40 lprintf("PGS_ReloadRom == 0\n");
\r
41 engineState = PGS_Menu;
\r
45 case PGS_RestartRun:
\r
46 engineState = PGS_Running;
\r
56 lprintf("engine got into unknown state (%i), exitting\n", engineState);
\r