From 98192874896b99167995b15f7e369968dd8f658e Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 27 Apr 2003 13:21:35 +0000 Subject: [PATCH] IOCTL Call 9 handled somewhat. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@971 --- src/dos/dos_ioctl.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/dos/dos_ioctl.cpp b/src/dos/dos_ioctl.cpp index 2bcda42b..77ddaba6 100644 --- a/src/dos/dos_ioctl.cpp +++ b/src/dos/dos_ioctl.cpp @@ -58,6 +58,17 @@ bool DOS_IOCTL(void) { DOS_SetError(DOSERR_INVALID_DRIVE); return false; } + case 0x09: /* Check if block device remote */ + drive=reg_bl;if (!drive) drive=dos.current_drive;else drive--; + if (Drives[drive]) { + reg_dx=0; + //TODO Cdrom drives are remote + //TODO Set bit 9 on drives that don't support direct I/O + return true; + } else { + DOS_SetError(DOSERR_INVALID_DRIVE); + return false; + } case 0x0D: /* Generic block device request */ { PhysPt ptr = SegPhys(ds)+reg_dx;