]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Command line to enable partition hardfile direct scsi support.
authorToni Wilen <twilen@winuae.net>
Sun, 18 Feb 2018 12:27:37 +0000 (14:27 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 18 Feb 2018 12:27:37 +0000 (14:27 +0200)
hardfile.cpp
od-win32/win32.cpp

index 5346ce37b42d2a92b72c1f7a0b553dd3376e6210..b3cadafc59488687e13bfd90913a0323b2c57bdb 100644 (file)
@@ -2724,7 +2724,7 @@ static uae_u32 hardfile_do_io (TrapContext *ctx, struct hardfiledata *hfd, struc
 
 #if HDF_SUPPORT_DS
        case HD_SCSICMD: /* SCSI */
-               if (HDF_SUPPORT_DS_PARTITION || (!hfd->ci.sectors && !hfd->ci.surfaces && !hfd->ci.reserved)) {
+               if (HDF_SUPPORT_DS_PARTITION || enable_ds_partition_hdf || (!hfd->ci.sectors && !hfd->ci.surfaces && !hfd->ci.reserved)) {
                        error = handle_scsi(ctx, iobuf, request, hfd, hfpd->sd);
                } else { /* we don't want users trashing their "partition" hardfiles with hdtoolbox */
                        error = IOERR_NOCMD;
index 573cec1a1183fc8b25ef7537456540d50331a3a0..09de01f0105362d81e23885fc58bff01354a197c 100644 (file)
@@ -5865,6 +5865,11 @@ static int parseargs (const TCHAR *argx, const TCHAR *np, const TCHAR *np2)
                log_scsiemu = 1;
                return 1;
        }
+       if (!_tcscmp (arg, _T("ds_partition_hdf"))) {
+               extern int enable_ds_partition_hdf;
+               enable_ds_partition_hdf = 1;
+               return 1;
+       }
        if (!_tcscmp (arg, _T("filesyslog"))) {
                log_filesys = 1;
                return 1;