Applied the recent mainline PCem commits (and fixed the Pentium machines);
Ported the Roland MT-32 emulation (using MUNT) from bit's MT32 emulation branch of PCem; Sanitized the OpenAL give buffer code in openal.c a bit; NVR path is now specifiable in the Settings dialog; Added Logitech 3-button serial mouse per protocol description by waltje; The RTL8029AS and the BT-958D now actually use the PCI IRQ routing; Fixed BT-958D PCI device initialization on the bus; PCI IRQ routing now respects the edge/level setting set on ports 4D0/4D1.
This commit is contained in:
16
src/rom.c
16
src/rom.c
@@ -25,6 +25,22 @@ FILE *nvrfopen(wchar_t *fn, wchar_t *mode)
|
||||
}
|
||||
|
||||
|
||||
int rom_getfile(wchar_t *fn, wchar_t *s, int size)
|
||||
{
|
||||
FILE *f;
|
||||
|
||||
wcscpy(s, pcempath);
|
||||
put_backslash_w(s);
|
||||
wcscat(s, fn);
|
||||
f = _wfopen(s, L"rb");
|
||||
if (f)
|
||||
{
|
||||
fclose(f);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int rom_present(wchar_t *fn)
|
||||
{
|
||||
FILE *f;
|
||||
|
||||
Reference in New Issue
Block a user