diff options
author | Johannes Schickel | 2008-01-27 15:30:53 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-01-27 15:30:53 +0000 |
commit | fec6e22cc92358b08d4e0f62e5db18119e5f2e6d (patch) | |
tree | 892f345ecfb354870ff72abcedc98dadaa3f0a1b /engines/kyra/kyra_v2.cpp | |
parent | fa5271d8366b40f20d645b31d5e3dad188a515e0 (diff) | |
download | scummvm-rg350-fec6e22cc92358b08d4e0f62e5db18119e5f2e6d.tar.gz scummvm-rg350-fec6e22cc92358b08d4e0f62e5db18119e5f2e6d.tar.bz2 scummvm-rg350-fec6e22cc92358b08d4e0f62e5db18119e5f2e6d.zip |
- slightly refactored user settings handling
- added user some settings handling for HoF
svn-id: r30653
Diffstat (limited to 'engines/kyra/kyra_v2.cpp')
-rw-r--r-- | engines/kyra/kyra_v2.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp index dedf81f979..7c6bb0429d 100644 --- a/engines/kyra/kyra_v2.cpp +++ b/engines/kyra/kyra_v2.cpp @@ -35,6 +35,7 @@ #include "kyra/debugger.h" #include "common/system.h" +#include "common/config-manager.h" namespace Kyra { @@ -1705,6 +1706,16 @@ void KyraEngine_v2::displayInvWsaLastFrame() { #pragma mark - +void KyraEngine_v2::registerDefaultSettings() { + KyraEngine::registerDefaultSettings(); + + // Most settings already have sensible defaults. This one, however, is + // specific to the Kyra engine. + ConfMan.registerDefault("walkspeed", 5); +} + +#pragma mark - + typedef Functor1Mem<ScriptState*, int, KyraEngine_v2> OpcodeV2; #define Opcode(x) OpcodeV2(this, &KyraEngine_v2::x) #define OpcodeUnImpl() OpcodeV2(this, 0) |