--- np2/sound/soundrom.c 2003/12/04 09:47:08 1.4 +++ np2/sound/soundrom.c 2003/12/12 01:04:41 1.7 @@ -1,7 +1,7 @@ #include "compiler.h" #include "dosio.h" +#include "cpucore.h" #include "pccore.h" -#include "memory.h" #include "soundrom.h" @@ -26,8 +26,7 @@ static BOOL loadsoundrom(UINT address, c file_catname(romname, name, sizeof(romname)); } file_catname(romname, file_extrom, sizeof(romname)); - file_cpyname(path, np2cfg.biospath, sizeof(path)); - file_catname(path, romname, sizeof(path)); + getbiospath(path, romname, sizeof(path)); fh = file_open_rb(path); if (fh == FILEH_INVALID) { goto lsr_err; @@ -68,7 +67,7 @@ void soundrom_load(UINT32 address, const soundrom.address = address; } -void soundrom_loadex(BYTE sw, const char *primary) { +void soundrom_loadex(UINT sw, const char *primary) { if (sw < 4) { soundrom_load((0xc8000 + ((UINT32)sw << 14)), primary);