mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-18 18:30:59 +00:00
added SCUMMVM_SAVEPATH environment variable that specifies where savegames are stored.
svn-id: r3564
This commit is contained in:
parent
d5e0c5021c
commit
a4aae7dc27
@ -1,4 +1,4 @@
|
||||
2002-01-13, version 0.1.0
|
||||
2002-02-03
|
||||
|
||||
ScummVM is an implementation of the SCUMM engine used in various Lucas Arts games
|
||||
such as Monkey Island and Day of the Tentacle.
|
||||
@ -46,6 +46,11 @@ F5 displays a save/load box.
|
||||
Space pauses.
|
||||
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,5 +61,7 @@ $ timidity -irv 7777
|
||||
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,
|
||||
The ScummVM team.
|
@ -146,7 +146,10 @@ bool Scumm::loadState(int slot, bool compat) {
|
||||
}
|
||||
|
||||
void Scumm::makeSavegameName(char *out, int slot, bool compatible) {
|
||||
sprintf(out, "%s.%c%.2d", _exe_name, compatible ? 'c': 's', slot);
|
||||
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);
|
||||
}
|
||||
|
||||
bool Scumm::getSavegameName(int slot, char *desc) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user