From: Toni Wilen Date: Sun, 18 Feb 2018 12:27:37 +0000 (+0200) Subject: Command line to enable partition hardfile direct scsi support. X-Git-Tag: 4000~175 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=1199f87fd6651eb69b97676708e7060135f6a53b;p=francis%2Fwinuae.git Command line to enable partition hardfile direct scsi support. --- diff --git a/hardfile.cpp b/hardfile.cpp index 5346ce37..b3cadafc 100644 --- a/hardfile.cpp +++ b/hardfile.cpp @@ -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; diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index 573cec1a..09de01f0 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -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;