aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-05 02:52:51 +0530
committerEugene Sandulenko2019-09-03 17:16:42 +0200
commit094bf4c06b4f9184b593e0f8f59c61fd1c577d8c (patch)
treec58314fbcc50de6686b9b744845a66756089ff42 /engines/hdb
parentbc638cf2511e3b9faaeb7f3f72ed1fb95f47b032 (diff)
downloadscummvm-rg350-094bf4c06b4f9184b593e0f8f59c61fd1c577d8c.tar.gz
scummvm-rg350-094bf4c06b4f9184b593e0f8f59c61fd1c577d8c.tar.bz2
scummvm-rg350-094bf4c06b4f9184b593e0f8f59c61fd1c577d8c.zip
HDB: Modify setGameFlags() to getGameFlags()
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/detection.cpp9
-rw-r--r--engines/hdb/hdb.cpp3
-rw-r--r--engines/hdb/hdb.h8
3 files changed, 7 insertions, 13 deletions
diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp
index 84d103d2d4..744d4304be 100644
--- a/engines/hdb/detection.cpp
+++ b/engines/hdb/detection.cpp
@@ -34,13 +34,8 @@ const char *HDBGame::getGameFile() const {
return _gameDescription->filesDescriptions[0].fileName;
}
-void HDBGame::setGameFlags() {
- _voiceless = false;
- if (_gameDescription->flags & ADGF_DEMO) {
- _isDemo = true;
- return;
- }
- _isDemo = false;
+uint32 HDBGame::getGameFlags() const {
+ return _gameDescription->flags;
}
} // End of namespace HDB
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 06fa6a9997..b96d8187e5 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -54,14 +54,11 @@ HDBGame::~HDBGame() {
}
bool HDBGame::init() {
- _voiceless = false;
-
/*
Game Subsystem Initializations
*/
// Init fileMan
- setGameFlags();
if (!fileMan->openMPC(getGameFile())) {
error("FileMan::openMPC: Cannot find the hyperspace.mpc data file.");
diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h
index ccbbc80a15..e76510dd4b 100644
--- a/engines/hdb/hdb.h
+++ b/engines/hdb/hdb.h
@@ -47,6 +47,10 @@ struct ADGameDescription;
namespace HDB {
+enum GameFeatures {
+ ADGF_TALKIE = 1 << 0
+};
+
enum HDBDebugChannels {
kDebugExample1 = 1 << 0,
kDebugExample2 = 1 << 1
@@ -70,7 +74,7 @@ public:
const ADGameDescription *_gameDescription;
const char *getGameId() const;
const char *getGameFile() const;
- void setGameFlags();
+ uint32 getGameFlags() const;
Common::Platform getPlatform() const;
/*
@@ -96,8 +100,6 @@ private:
bool _systemInit;
GameState _gameState;
- bool _voiceless;
- bool _isDemo;
};