From aea9c0fa8356fc0b1e9cb370bdda147bbc547ea8 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sat, 9 Sep 2006 16:06:32 +0000 Subject: [PATCH] Patch "[ 1555185 ] Fix for SVGA Harrier" from Vasyl Tsvirkunov Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2697 --- src/hardware/vga_s3.cpp | 3 ++- src/shell/shell_misc.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hardware/vga_s3.cpp b/src/hardware/vga_s3.cpp index c2459f3d..fb92b984 100644 --- a/src/hardware/vga_s3.cpp +++ b/src/hardware/vga_s3.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: vga_s3.cpp,v 1.4 2006-07-08 16:32:26 c2woody Exp $ */ +/* $Id: vga_s3.cpp,v 1.5 2006-09-09 16:06:31 qbix79 Exp $ */ #include "dosbox.h" #include "inout.h" @@ -29,6 +29,7 @@ void SVGA_S3_WriteCRTC(Bitu reg,Bitu val,Bitu iolen) { vga.s3.reg_31 = val; vga.config.compatible_chain4 = !(val&0x08); VGA_DetermineMode(); + VGA_SetupHandlers(); break; /* 0 Enable Base Address Offset (CPUA BASE). Enables bank operation if diff --git a/src/shell/shell_misc.cpp b/src/shell/shell_misc.cpp index d383e77f..0fed3ec0 100644 --- a/src/shell/shell_misc.cpp +++ b/src/shell/shell_misc.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: shell_misc.cpp,v 1.44 2006-04-07 19:56:45 qbix79 Exp $ */ +/* $Id: shell_misc.cpp,v 1.45 2006-09-09 16:06:32 qbix79 Exp $ */ #include #include @@ -368,7 +368,7 @@ bool DOS_Shell::Execute(char * name,char * args) { }; /* check for a drive change */ - if ((strcmp(name + 1, ":") == 0) && isalpha(*name)) + if (((strcmp(name + 1, ":") == 0) || (strcmp(name + 1, ":\\") == 0)) && isalpha(*name)) { if (!DOS_SetDrive(toupper(name[0])-'A')) { WriteOut(MSG_Get("SHELL_EXECUTE_DRIVE_NOT_FOUND"),toupper(name[0]));