-// (c) Copyright 2006 notaz, All rights reserved.\r
+// (c) Copyright 2007 notaz, All rights reserved.\r
// Free for non-commercial use.\r
\r
// For commercial use, separate licencing terms must be obtained.\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_ReloadRom(romFileName))\r
engineState = PGS_Running;\r
else {\r
lprintf("PGS_ReloadRom == 0\n");\r