[Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.99,1.100

Eugene Sandulenko sev at users.sourceforge.net
Sat Feb 19 16:18:55 CET 2005


Update of /cvsroot/scummvm/scummvm/base
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6099/base

Modified Files:
	gameDetector.cpp 
Log Message:
Patch #1121337 (CGA rendering in early LEC titles).
Differences against patch:
  o Updated documentation
  o Fixed text colors
  o Implemented Hercules dithering

Ditherers are based on loom ega and monkey ega, so for zak and mm they're
wrong, i.e. these games look better than with original ditherers.

TODO:
  Proper ditherers for zak & MM
  EGA ditherers for VGA SCUMM v5 games


Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- gameDetector.cpp	10 Jan 2005 22:05:34 -0000	1.99
+++ gameDetector.cpp	20 Feb 2005 00:17:20 -0000	1.100
@@ -96,6 +96,7 @@
 	"  --native-mt32            True Roland MT-32 (disable GM emulation)\n"
 	"  --output-rate=RATE       Select output sample rate in Hz (e.g. 22050)\n"
 	"  --aspect-ratio           Enable aspect ratio correction\n"
+	"  --render-mode=MODE       Enable additional render modes (cga, ega, hercules)\n"
 	"\n"
 #if !defined(DISABLE_SKY) || !defined(DISABLE_QUEEN)
 	"  --alt-intro              Use alternative intro for CD versions of Beneath a\n"
@@ -122,6 +123,7 @@
 	ConfMan.registerDefault("fullscreen", false);
 	ConfMan.registerDefault("aspect_ratio", false);
 	ConfMan.registerDefault("gfx_mode", "normal");
+	ConfMan.registerDefault("render_mode", "default");
 
 	// Sound & Music
 	ConfMan.registerDefault("music_volume", 192);
@@ -478,6 +480,14 @@
 				ConfMan.set("aspect_ratio", cmdValue, kTransientDomain);
 			END_OPTION
 
+			DO_LONG_OPTION("render-mode")
+				int renderMode = Common::parseRenderMode(option);
+				if (renderMode == Common::kRenderDefault)
+					goto ShowHelpAndExit;
+
+				ConfMan.set("render_mode", option, kTransientDomain);
+			END_OPTION
+
 			DO_LONG_OPTION("savepath")
 				// TODO: Verify whether the path is valid
 				ConfMan.set("savepath", option, kTransientDomain);





More information about the Scummvm-git-logs mailing list