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 "version.h"
\r
16 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
\r
18 emu_ReadConfig(0, 0);
\r
19 giz_init(hInstance, hPrevInstance);
\r
23 engineState = PGS_Menu;
\r
27 switch (engineState)
\r
34 if (emu_ReloadRom())
\r
35 engineState = PGS_Running;
\r
37 lprintf("PGS_ReloadRom == 0\n");
\r
38 engineState = PGS_Menu;
\r
42 case PGS_RestartRun:
\r
43 engineState = PGS_Running;
\r
53 lprintf("engine got into unknown state (%i), exitting\n", engineState);
\r