X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgizmondo%2Fmain.c;h=562b7ade394f2edeeec8bfb2dae6b919b8bd41a2;hb=ee3c39efd2cf51cd654b6240f6fb595673f10f45;hp=8038a9419a937104d83ca4230261e79713144d55;hpb=ea8c405fa721a8658b1f7c51cf6238ba2bba8a17;p=picodrive.git diff --git a/platform/gizmondo/main.c b/platform/gizmondo/main.c index 8038a94..562b7ad 100644 --- a/platform/gizmondo/main.c +++ b/platform/gizmondo/main.c @@ -1,7 +1,10 @@ -// (c) Copyright 2006 notaz, All rights reserved. -// Free for non-commercial use. - -// For commercial use, separate licencing terms must be obtained. +/* + * PicoDrive + * (C) notaz, 2006-2008 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include @@ -10,12 +13,15 @@ #include "emu.h" #include "../common/menu.h" #include "../common/emu.h" +#include "../common/config.h" #include "version.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) { + emu_prepareDefaultConfig(); emu_ReadConfig(0, 0); + config_readlrom(PicoConfigFile); giz_init(hInstance, hPrevInstance); emu_Init(); menu_init(); @@ -31,7 +37,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdL break; case PGS_ReloadRom: - if (emu_ReloadRom()) + if (emu_reload_rom(romFileName)) engineState = PGS_Running; else { lprintf("PGS_ReloadRom == 0\n"); @@ -43,7 +49,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdL engineState = PGS_Running; case PGS_Running: - emu_Loop(); + pemu_loop(); break; case PGS_Quit: