X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgizmondo%2Fmain.c;h=562b7ade394f2edeeec8bfb2dae6b919b8bd41a2;hb=3f23709ef37c5b3511c1445cbed7b447b56a37e0;hp=59b8e57c7d7bd3f2da79ba5f6b96b1b3c4abb579;hpb=3c392aec73426a15ef3b07d6cea8411d5ee936f8;p=picodrive.git diff --git a/platform/gizmondo/main.c b/platform/gizmondo/main.c index 59b8e57..562b7ad 100644 --- a/platform/gizmondo/main.c +++ b/platform/gizmondo/main.c @@ -1,7 +1,10 @@ -// (c) Copyright 2007 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: