mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
WAGE: Refactor getFeatures()
This commit is contained in:
parent
e8fee0ccc2
commit
9f6d054f5d
@ -30,10 +30,6 @@
|
||||
|
||||
namespace Wage {
|
||||
|
||||
void WageEngine::initFeatures() {
|
||||
_gameFeatures = _gameDescription->flags;
|
||||
}
|
||||
|
||||
const char *WageEngine::getGameFile() const {
|
||||
return _gameDescription->filesDescriptions[0].fileName;
|
||||
}
|
||||
|
@ -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() {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user