[Scummvm-cvs-logs] CVS: scummvm/bs2 sword2.cpp,1.51,1.52
Max Horn
fingolfin at users.sourceforge.net
Wed Oct 8 15:00:12 CEST 2003
Update of /cvsroot/scummvm/scummvm/bs2
In directory sc8-pr-cvs1:/tmp/cvs-serv6106/bs2
Modified Files:
sword2.cpp
Log Message:
new config manager. not everything is completed, and some things will still be changed, but it seems to work well enough to put it into CVS
Index: sword2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/bs2/sword2.cpp,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- sword2.cpp 5 Oct 2003 15:28:13 -0000 1.51
+++ sword2.cpp 8 Oct 2003 21:59:21 -0000 1.52
@@ -20,7 +20,7 @@
#include "stdafx.h"
#include "base/gameDetector.h"
#include "base/plugins.h"
-#include "common/config-file.h"
+#include "common/config-manager.h"
#include "bs2/build_display.h"
#include "bs2/console.h"
#include "bs2/controls.h"
@@ -105,9 +105,9 @@
_features = detector->_game.features;
_gameId = detector->_game.id;
_game_name = strdup(detector->_gameFileName.c_str());
- _bootParam = detector->_bootParam;
- _saveSlot = detector->_save_slot;
- _debugLevel = detector->_debugLevel;
+ _bootParam = ConfMan.getInt("boot_param");
+ _saveSlot = ConfMan.getInt("save_slot");
+ _debugLevel = ConfMan.getInt("debuglevel");
// Setup mixer
if (!_mixer->bindToSystem(syst))
More information about the Scummvm-git-logs
mailing list