-// (c) Copyright 2006 notaz, All rights reserved.\r
-// Free for non-commercial use.\r
-\r
-// For commercial use, separate licencing terms must be obtained.\r
+/*\r
+ * PicoDrive\r
+ * (C) notaz, 2006-2008\r
+ *\r
+ * This work is licensed under the terms of MAME license.\r
+ * See COPYING file in the top-level directory.\r
+ */\r
\r
#include <windows.h>\r
\r
#include "emu.h"\r
#include "../common/menu.h"\r
#include "../common/emu.h"\r
+#include "../common/config.h"\r
#include "version.h"\r
\r
\r
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)\r
{\r
+ emu_prepareDefaultConfig();\r
emu_ReadConfig(0, 0);\r
+ config_readlrom(PicoConfigFile);\r
giz_init(hInstance, hPrevInstance);\r
emu_Init();\r
menu_init();\r
break;\r
\r
case PGS_ReloadRom:\r
- if (emu_ReloadRom())\r
+ if (emu_reload_rom(romFileName))\r
engineState = PGS_Running;\r
else {\r
lprintf("PGS_ReloadRom == 0\n");\r
engineState = PGS_Running;\r
\r
case PGS_Running:\r
- emu_Loop();\r
+ pemu_loop();\r
break;\r
\r
case PGS_Quit:\r