]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Do not abort uaehf.device RDB parsing if driveinit or badblock is set.
authorToni Wilen <twilen@winuae.net>
Fri, 18 Sep 2015 15:59:45 +0000 (18:59 +0300)
committerToni Wilen <twilen@winuae.net>
Fri, 18 Sep 2015 15:59:45 +0000 (18:59 +0300)
filesys.cpp

index 20b230669b4e699c7539943740c52f0cd4db8e83..e296637c2607e2ada1cac08107a8c523793d3777 100644 (file)
@@ -7364,18 +7364,17 @@ static int rdb_mount (UnitInfo *uip, int unit_no, int partnum, uaecptr parmpacke
        }
        blocksize = rl (bufrdb + 16);
        readblocksize = blocksize > hfd->ci.blocksize ? blocksize : hfd->ci.blocksize;
+
        badblock = rl (bufrdb + 24);
        if (badblock != -1) {
-               rdbmnt
-               write_log (_T("RDB: badblock list is not yet supported. Contact the author.\n"));
-               return -2;
+               write_log (_T("RDB: badblock list %08x\n"), badblock);
        }
+
        driveinitblock = rl (bufrdb + 36);
        if (driveinitblock != -1) {
-               rdbmnt
-               write_log (_T("RDB: driveinit is not yet supported. Contact the author.\n"));
-               return -2;
+               write_log (_T("RDB: driveinit = %08x\n"), driveinitblock);
        }
+
        hfd->rdbcylinders = rl (bufrdb + 64);
        hfd->rdbsectors = rl (bufrdb + 68);
        hfd->rdbheads = rl (bufrdb + 72);