From d1773647159f9ef1393d7a1d33204de5886edce5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 8 Oct 2003 21:59:23 +0000 Subject: 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 svn-id: r10687 --- sword2/sword2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sword2') diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp index 214ffbbcf1..731850fae6 100644 --- a/sword2/sword2.cpp +++ b/sword2/sword2.cpp @@ -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 @@ Sword2Engine::Sword2Engine(GameDetector *detector, OSystem *syst) _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)) -- cgit v1.2.3