From: Frode Solheim Date: Fri, 4 Sep 2015 21:59:59 +0000 (+0200) Subject: cpuboard: support loading rom using full path X-Git-Tag: 3200~89^2~9 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=6d618bdcd6fac18690466d19ce3654a9cdc9e295;p=francis%2Fwinuae.git cpuboard: support loading rom using full path --- diff --git a/cpuboard.cpp b/cpuboard.cpp index 690c9703..ea9d6acd 100644 --- a/cpuboard.cpp +++ b/cpuboard.cpp @@ -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);