From f75fa68c057dc5e626428415b38f7159d2d23c06 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 27 Nov 2014 14:58:41 +0100 Subject: ACCESS: Add a replacement of configSelect, currently just initializing _hintLevel --- engines/access/amazon/amazon_game.cpp | 6 ++++++ engines/access/amazon/amazon_game.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/engines/access/amazon/amazon_game.cpp b/engines/access/amazon/amazon_game.cpp index 9b9df8bc25..912c4ddfd2 100644 --- a/engines/access/amazon/amazon_game.cpp +++ b/engines/access/amazon/amazon_game.cpp @@ -87,6 +87,11 @@ void AmazonEngine::freeInactivePlayer() { _inactive._altSpritesPtr = nullptr; } +void AmazonEngine::configSelect() { + // Initialize fields contained in the config file. + _hintLevel = 3; +} + void AmazonEngine::playGame() { // Initialize Amazon game-specific objects _room = new AmazonRoom(this); @@ -95,6 +100,7 @@ void AmazonEngine::playGame() { // Setup the game setupGame(); + configSelect(); if (_loadSaveSlot == -1) { // Do introduction diff --git a/engines/access/amazon/amazon_game.h b/engines/access/amazon/amazon_game.h index 2d371ca9fb..d67f0c2150 100644 --- a/engines/access/amazon/amazon_game.h +++ b/engines/access/amazon/amazon_game.h @@ -98,6 +98,11 @@ private: */ void setupGame(); + /** + * Initialize variables found in the config file + */ + void configSelect(); + void initVariables(); void calcIQ(); void helpTitle(); -- cgit v1.2.3