[Scummvm-cvs-logs] SF.net SVN: scummvm:[33961] residual/trunk/engine
aquadran at users.sourceforge.net
aquadran at users.sourceforge.net
Sun Aug 17 09:40:17 CEST 2008
Revision: 33961
http://scummvm.svn.sourceforge.net/scummvm/?rev=33961&view=rev
Author: aquadran
Date: 2008-08-17 07:40:16 +0000 (Sun, 17 Aug 2008)
Log Message:
-----------
add missing savepath param
Modified Paths:
--------------
residual/trunk/engine/registry.cpp
residual/trunk/engine/registry.h
Modified: residual/trunk/engine/registry.cpp
===================================================================
--- residual/trunk/engine/registry.cpp 2008-08-17 07:25:47 UTC (rev 33960)
+++ residual/trunk/engine/registry.cpp 2008-08-17 07:40:16 UTC (rev 33961)
@@ -56,6 +56,7 @@
Registry::Registry() : _dirty(true) {
_develMode = ConfMan.get("game_devel_mode");
_dataPath = ConfMan.get("path");
+ _savePath = ConfMan.get("savepath");
_lastSet = ConfMan.get("last_set");
_musicVolume = ConfMan.get("music_volume");
_sfxVolume = ConfMan.get("sfx_volume");
@@ -80,6 +81,8 @@
return _develMode.c_str();
} else if (strcasecmp("GrimDataDir", key) == 0) {
return _dataPath.c_str();
+ } else if (strcasecmp("savepath", key) == 0) {
+ return _savePath.c_str();
} else if (strcasecmp("GrimLastSet", key) == 0) {
return _lastSet.c_str();
} else if (strcasecmp("MusicVolume", key) == 0) {
@@ -134,6 +137,9 @@
} else if (strcasecmp("GrimDataDir", key) == 0) {
_dataPath = val;
return;
+ } else if (strcasecmp("savepath", key) == 0) {
+ _savePath = val;
+ return;
} else if (strcasecmp("GrimLastSet", key) == 0) {
_lastSet = val;
return;
@@ -194,6 +200,7 @@
ConfMan.set("game_devel_mode", _develMode);
ConfMan.set("path", _dataPath);
+ ConfMan.set("savepath", _savePath);
ConfMan.set("last_set", _lastSet);
ConfMan.set("music_volume", _musicVolume);
ConfMan.set("sfx_volume", _sfxVolume);
Modified: residual/trunk/engine/registry.h
===================================================================
--- residual/trunk/engine/registry.h 2008-08-17 07:25:47 UTC (rev 33960)
+++ residual/trunk/engine/registry.h 2008-08-17 07:40:16 UTC (rev 33961)
@@ -43,6 +43,7 @@
Common::String _develMode;
Common::String _dataPath;
+ Common::String _savePath;
Common::String _lastSet;
Common::String _musicVolume;
Common::String _sfxVolume;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list