diff --git a/genplus-gx/cinterface/cinterface.c b/genplus-gx/cinterface/cinterface.c index ac602532d1..9db3a81573 100644 --- a/genplus-gx/cinterface/cinterface.c +++ b/genplus-gx/cinterface/cinterface.c @@ -404,8 +404,13 @@ GPGX_EX int gpgx_init(const char *feromextension, int (*feload_archive_cb)(const config.input[i].padtype = sixbutton ? DEVICE_PAD6B : DEVICE_PAD3B; } - if (!load_rom("PRIMARY_ROM")) - return 0; + { + //copy our desired fname into a r/w string buffer, since load_rom may edit it (!) + char fname[64]; + strcpy(fname,"PRIMARY_ROM"); + if (!load_rom(fname)) + return 0; + } audio_init(44100, 0); system_init(); diff --git a/output/dll/libgenplusgx.dll b/output/dll/libgenplusgx.dll index 3282493ab3..55b4de00f4 100644 Binary files a/output/dll/libgenplusgx.dll and b/output/dll/libgenplusgx.dll differ