[Scummvm-cvs-logs] CVS: scummvm main.cpp,1.19,1.20 readme.txt,1.57,1.58

James Brown ender at users.sourceforge.net
Mon May 13 09:10:02 CEST 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv26597

Modified Files:
	main.cpp readme.txt 
Log Message:
Oops, two post-tag changes to the config file system.



Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/main.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- main.cpp	5 May 2002 20:04:25 -0000	1.19
+++ main.cpp	13 May 2002 16:09:11 -0000	1.20
@@ -144,7 +144,15 @@
 	/* On Unix, do a quick endian / alignement check before starting */
 	do_memory_test();
 #else
-	scummcfg = new Config(DEFAULT_CONFIG_FILE, "scummvm");
+    char scummhome[255];
+	#if defined (WIN32) && !defined(_WIN32_WCE)
+		GetWindowsDirectory(scummhome, 255);
+		strcat(scummhome, "\\");
+		strcat(scummhome, DEFAULT_CONFIG_FILE);
+	#else	
+		strcpy(scummhome,DEFAULT_CONFIG_FILE);
+	#endif
+	scummcfg = new Config(scummhome, "scummvm");
 #endif
 	scummcfg->set("versioninfo", SCUMMVM_VERSION);
 	if (detector.detectMain(argc, argv))

Index: readme.txt
===================================================================
RCS file: /cvsroot/scummvm/scummvm/readme.txt,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- readme.txt	13 May 2002 15:21:37 -0000	1.57
+++ readme.txt	13 May 2002 16:09:11 -0000	1.58
@@ -202,8 +202,9 @@
   C:\Games\LucasArts\scummvm.exe -f -n -pD:\resource\ ft
 
 Note that if you run the game once this way, and specify the -w commandline
-parameter (or edit scummvm.ini manually), ScummVM will remember the path,
-and other settings for this game.
+parameter (or edit the config file manually), ScummVM will remember the
+path, and other settings for this game. Documentation on the configuration
+file can be found near the end of this readme.
 
 The short game name you see at the end of the command line is very
 important. A short list is contained at the top of this file. You can also
@@ -236,7 +237,7 @@
         -a         - Enable amiga pal conversion, for playing Amiga versions
         -d[<num>]  - Set debug verbosity to <num>
         -w[<file>] - Write configuration file
-        -l<file>   - Load alternate configration file (default: scummvm.ini)
+        -l<file>   - Load alternate configration file
 
 In game Hot Keys:
 -----------------
@@ -392,6 +393,39 @@
 -Tint16 -Tint32 -TArrayHeader -TMemBlkHeader -TVerbSlot -TObjectData
 -TImageHeader -TRoomHeader -TCodeHeader -TResHdr -TBompHeader
 -TMidiChannelAdl -TGui -TScumm -TSoundEngine -TPart -TPlayer
+
+
+Configuration file:
+-------------------
+By default, the configuration file is saved in, and loaded from:
+
+        Windows: <windir>\scummvm.ini,
+        Linux:   ~/.scummvmrc
+        Others:  scummvm.ini in the current directory
+
+An example config file is as follows:
+
+        [scummvm]
+        gfx_mode=supereagle
+        fullscreen=true
+
+        [tentacle]
+        path=C:\tentacle\
+        nosubtitles=true
+        master_volume=98
+        music_volume=40
+        sfx_volume=255
+
+        [loomcd]
+        cdrom=1
+        path=C:\loom\
+        talkspeed=55
+        
+        [monkey2]
+        path=C:\amiga_mi2\
+        music_driver=windows
+        amiga=true
+
 
 
 Credits:





More information about the Scummvm-git-logs mailing list