diff options
author | Paul Gilbert | 2018-03-25 23:12:14 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-25 23:14:22 -0400 |
commit | 99729bc15d994fa0b5b6b98a19faa252b7c1415e (patch) | |
tree | 5026accf42239921f63abcfb839e8405ef53a2cb /engines/xeen/xeen.cpp | |
parent | f198c16f455bcbab0b5908eee2771146af544969 (diff) | |
download | scummvm-rg350-99729bc15d994fa0b5b6b98a19faa252b7c1415e.tar.gz scummvm-rg350-99729bc15d994fa0b5b6b98a19faa252b7c1415e.tar.bz2 scummvm-rg350-99729bc15d994fa0b5b6b98a19faa252b7c1415e.zip |
XEEN: Add custom engine option for showing inventory item costs
This first new option displays the effective cost of items
when viewing in the standard character inventory. This makes
it easier to compare the value (and thus relative power)
of items against either other
Diffstat (limited to 'engines/xeen/xeen.cpp')
-rw-r--r-- | engines/xeen/xeen.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/xeen/xeen.cpp b/engines/xeen/xeen.cpp index f645732562..bf71c8ee6f 100644 --- a/engines/xeen/xeen.cpp +++ b/engines/xeen/xeen.cpp @@ -114,19 +114,25 @@ bool XeenEngine::initialize() { syncSoundSettings(); // Load settings + loadSettings(); + + return true; +} + +void XeenEngine::loadSettings() { _gameWon[0] = ConfMan.hasKey("game_won") && ConfMan.getBool("game_won"); _gameWon[1] = ConfMan.hasKey("game_won2") && ConfMan.getBool("game_won2"); _gameWon[2] = ConfMan.hasKey("game_won3") && ConfMan.getBool("game_won3"); _finalScore = ConfMan.hasKey("final_score") ? ConfMan.getInt("final_score") : 0; + _extOptions._showItemCosts = ConfMan.hasKey("ShowItemCosts") && ConfMan.getBool("ShowItemCosts"); + // If requested, load a savegame instead of showing the intro if (ConfMan.hasKey("save_slot")) { int saveSlot = ConfMan.getInt("save_slot"); if (saveSlot >= 0 && saveSlot <= 999) _loadSaveSlot = saveSlot; } - - return true; } Common::Error XeenEngine::run() { |