From 5f5b27e15701f591883942de9a2965ab6f07e810 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 23 Jun 2005 20:13:58 +0000 Subject: [PATCH] added basic network redirector check used to detect mscdex (patch 1197725 and modified it) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2225 --- src/dos/dos_mscdex.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/dos/dos_mscdex.cpp b/src/dos/dos_mscdex.cpp index 224db0e4..da648e22 100644 --- a/src/dos/dos_mscdex.cpp +++ b/src/dos/dos_mscdex.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_mscdex.cpp,v 1.29 2005-06-16 18:28:36 qbix79 Exp $ */ +/* $Id: dos_mscdex.cpp,v 1.30 2005-06-23 20:13:58 qbix79 Exp $ */ #include #include @@ -921,8 +921,19 @@ static Bitu MSCDEX_Interrupt_Handler(void) return CBRET_NONE; } -static bool MSCDEX_Handler(void) -{ +static bool MSCDEX_Handler(void) { + if(reg_ah == 0x11) { + if(reg_al == 0x00) { + reg_al = 0xff; + return true; + } else { + LOG(LOG_MISC,LOG_ERROR)("NETWORK REDIRECTOR USED!!!"); + reg_ax = 0x49;//NETWERK SOFTWARE NOT INSTALLED + CALLBACK_SCF(true); + return true; + } + } + if (reg_ah!=0x15) return false; PhysPt data = PhysMake(SegValue(es),reg_bx);