[Scummvm-cvs-logs] CVS: scummvm saveload.cpp,1.24,1.25 readme.txt,1.6,1.7

Ludvig Strigeus strigeus at users.sourceforge.net
Sun Feb 3 08:39:17 CET 2002


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

Modified Files:
	saveload.cpp readme.txt 
Log Message:
added SCUMMVM_SAVEPATH environment variable that specifies where savegames are stored.

Index: saveload.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saveload.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** saveload.cpp	2002/02/02 23:27:06	1.24
--- saveload.cpp	2002/02/03 16:38:29	1.25
***************
*** 147,151 ****
  
  void Scumm::makeSavegameName(char *out, int slot, bool compatible) {
! 	sprintf(out, "%s.%c%.2d", _exe_name, compatible ? 'c': 's', slot);
  }
  
--- 147,154 ----
  
  void Scumm::makeSavegameName(char *out, int slot, bool compatible) {
! 	const char *dir = getenv("SCUMMVM_SAVEPATH");
! 	if (dir==NULL) dir="";
! 	/* snprintf should be used here, but it's not portable enough */
! 	sprintf(out, "%s%s.%c%.2d", dir, _exe_name, compatible ? 'c': 's', slot);
  }
  

Index: readme.txt
===================================================================
RCS file: /cvsroot/scummvm/scummvm/readme.txt,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** readme.txt	2002/01/13 19:48:43	1.6
--- readme.txt	2002/02/03 16:38:29	1.7
***************
*** 1,3 ****
! 2002-01-13, version 0.1.0
  
  ScummVM is an implementation of the SCUMM engine used in various Lucas Arts games
--- 1,3 ----
! 2002-02-03
  
  ScummVM is an implementation of the SCUMM engine used in various Lucas Arts games
***************
*** 47,50 ****
--- 47,55 ----
  Alt-Enter toggles full screen (on unix)
  
+ Savegames:
+ ----------
+ Savegames are by default put in the current directory. You can use the environment variable SCUMMVM_SAVEPATH to specify where to put save games. Don't forget the trailing directory separator.
+ Bash Example:
+ export SCUMMVM_SAVEPATH=/tmp/scummvm_savegames/
  
  Playing sound with Timidity:
***************
*** 56,59 ****
--- 61,66 ----
  Then just start ScummVM and you should have sound.
  In order to use timidity, you need to compile ScummVM with USE_TIMIDITY.
+ 
+ If you compile ScummVM with the USE_ADLIB flag, an Adlib card will be emulated and ScummVM will output the music as sampled waves. (doesn't work with Sam&Max)
  
  Good Luck,





More information about the Scummvm-git-logs mailing list