|
|
| version 1.2, 2003/10/18 01:21:58 | version 1.4, 2003/12/04 09:47:08 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "dosio.h" | #include "dosio.h" |
| #include "pccore.h" | |
| #include "memory.h" | #include "memory.h" |
| #include "soundrom.h" | #include "soundrom.h" |
| Line 16 static const BYTE defsoundrom[9] = { | Line 17 static const BYTE defsoundrom[9] = { |
| static BOOL loadsoundrom(UINT address, const char *name) { | static BOOL loadsoundrom(UINT address, const char *name) { |
| char romname[24]; | char romname[24]; |
| char path[MAX_PATH]; | |
| FILEH fh; | FILEH fh; |
| UINT rsize; | UINT rsize; |
| Line 24 static BOOL loadsoundrom(UINT address, c | Line 26 static BOOL loadsoundrom(UINT address, c |
| file_catname(romname, name, sizeof(romname)); | file_catname(romname, name, sizeof(romname)); |
| } | } |
| file_catname(romname, file_extrom, sizeof(romname)); | file_catname(romname, file_extrom, sizeof(romname)); |
| fh = file_open_c(romname); | file_cpyname(path, np2cfg.biospath, sizeof(path)); |
| file_catname(path, romname, sizeof(path)); | |
| fh = file_open_rb(path); | |
| if (fh == FILEH_INVALID) { | if (fh == FILEH_INVALID) { |
| goto lsr_err; | goto lsr_err; |
| } | } |