mirror of
https://github.com/LIV2/WinUAE.git
synced 2025-12-06 00:12:52 +00:00
cpuboard: support loading rom using full path
This commit is contained in:
parent
bf34bd8f84
commit
6d618bdcd6
@ -2035,6 +2035,10 @@ static struct zfile *board_rom_open(int *roms, const TCHAR *name)
|
||||
if (rl)
|
||||
zf = read_rom(rl->rd);
|
||||
if (!zf && name) {
|
||||
zf = zfile_fopen(name, _T("rb"), ZFD_NORMAL);
|
||||
if (zf) {
|
||||
return zf;
|
||||
}
|
||||
TCHAR path[MAX_DPATH];
|
||||
fetch_rompath(path, sizeof path / sizeof(TCHAR));
|
||||
_tcscat(path, name);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user