3 * (C) notaz, 2006-2008
\r
5 * This work is licensed under the terms of MAME license.
\r
6 * See COPYING file in the top-level directory.
\r
14 #include "../common/menu.h"
\r
15 #include "../common/emu.h"
\r
16 #include "../common/config.h"
\r
17 #include "version.h"
\r
20 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
\r
22 emu_prepareDefaultConfig();
\r
23 emu_ReadConfig(0, 0);
\r
24 config_readlrom(PicoConfigFile);
\r
25 giz_init(hInstance, hPrevInstance);
\r
29 engineState = PGS_Menu;
\r
33 switch (engineState)
\r
40 if (emu_reload_rom(romFileName))
\r
41 engineState = PGS_Running;
\r
43 lprintf("PGS_ReloadRom == 0\n");
\r
44 engineState = PGS_Menu;
\r
48 case PGS_RestartRun:
\r
49 engineState = PGS_Running;
\r
59 lprintf("engine got into unknown state (%i), exitting\n", engineState);
\r