X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=platform%2Fgizmondo%2Fmain.c;h=562b7ade394f2edeeec8bfb2dae6b919b8bd41a2;hb=fda2f31020bf0d6cf7b5dd70ec01cf390b7e1483;hp=21216b78c5ccf5ac3bca0cb29ff613e34b4e21b5;hpb=e5f426aa2e86d56357b8af2795e73cc0c9b17e8f;p=picodrive.git diff --git a/platform/gizmondo/main.c b/platform/gizmondo/main.c index 21216b7..562b7ad 100644 --- a/platform/gizmondo/main.c +++ b/platform/gizmondo/main.c @@ -1,20 +1,27 @@ -// (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 #include "giz.h" #include "menu.h" -#include "../common/menu.h" #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(); @@ -30,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"); @@ -42,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: