WAGE: Refactor getFeatures()

This commit is contained in:
Avijeet 2022-08-03 02:02:11 +05:30 committed by Eugene Sandulenko
parent e8fee0ccc2
commit 9f6d054f5d
3 changed files with 2 additions and 11 deletions

View File

@ -30,10 +30,6 @@
namespace Wage {
void WageEngine::initFeatures() {
_gameFeatures = _gameDescription->flags;
}
const char *WageEngine::getGameFile() const {
return _gameDescription->filesDescriptions[0].fileName;
}

View File

@ -53,6 +53,7 @@
#include "engines/engine.h"
#include "engines/util.h"
#include "engines/advancedDetector.h"
#include "graphics/macgui/macdialog.h"
@ -88,9 +89,6 @@ WageEngine::WageEngine(OSystem *syst, const ADGameDescription *desc) : Engine(sy
_resManager = NULL;
_gameFeatures = 0;
initFeatures();
debug("WageEngine::WageEngine()");
}
@ -286,7 +284,7 @@ void WageEngine::saveGame() {
}
uint32 WageEngine::getFeatures() {
return _gameFeatures;
return _gameDescription->flags;
}
void WageEngine::performInitialSetup() {

View File

@ -202,8 +202,6 @@ public:
Common::String _inputText;
uint32 _gameFeatures;
void playSound(Common::String soundName);
void setMenu(Common::String soundName);
void appendText(const char *str);
@ -219,7 +217,6 @@ public:
void redrawScene();
void saveGame();
void initFeatures();
uint32 getFeatures();
Common::Error loadGameState(int slot) override;