]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
cpuboard: support loading rom using full path
authorFrode Solheim <frode@fs-uae.net>
Fri, 4 Sep 2015 21:59:59 +0000 (23:59 +0200)
committerFrode Solheim <frode@fs-uae.net>
Fri, 4 Sep 2015 21:59:59 +0000 (23:59 +0200)
cpuboard.cpp

index 690c97032a8d221c1e8cb1219c260d877ba2be45..ea9d6acd6a01305e815d3432080bec97bc84461a 100644 (file)
@@ -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);