aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/game.cpp4
-rw-r--r--engines/cine/detection.cpp4
-rw-r--r--engines/saga/game.cpp4
-rw-r--r--engines/scumm/dialogs.cpp4
4 files changed, 8 insertions, 8 deletions
diff --git a/engines/agos/game.cpp b/engines/agos/game.cpp
index d393f8e95e..9cf545f5b9 100644
--- a/engines/agos/game.cpp
+++ b/engines/agos/game.cpp
@@ -205,7 +205,7 @@ bool AGOSEngine::initGame() {
// over again...
for (int i = 0; i < ARRAYSIZE(gameDescriptions); i++)
- descList.push_back((ADGameDescription *)&gameDescriptions[i]);
+ descList.push_back((const ADGameDescription *)&gameDescriptions[i]);
AdvDetector.registerGameDescriptions(descList);
AdvDetector.setFileMD5Bytes(FILE_MD5_BYTES);
@@ -239,7 +239,7 @@ DetectedGameList GAME_detectGames(const FSList &fslist) {
Common::ADGameDescList descList;
for (int i = 0; i < ARRAYSIZE(gameDescriptions); i++)
- descList.push_back((ADGameDescription *)&gameDescriptions[i]);
+ descList.push_back((const ADGameDescription *)&gameDescriptions[i]);
AdvDetector.registerGameDescriptions(descList);
AdvDetector.setFileMD5Bytes(FILE_MD5_BYTES);
diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp
index 7a601f37b3..4bda1d9991 100644
--- a/engines/cine/detection.cpp
+++ b/engines/cine/detection.cpp
@@ -662,7 +662,7 @@ bool CineEngine::initGame() {
// over again...
for (int i = 0; i < ARRAYSIZE(gameDescriptions); i++)
- descList.push_back((ADGameDescription *)&gameDescriptions[i]);
+ descList.push_back((const ADGameDescription *)&gameDescriptions[i]);
AdvDetector.registerGameDescriptions(descList);
AdvDetector.setFileMD5Bytes(FILE_MD5_BYTES);
@@ -696,7 +696,7 @@ DetectedGameList GAME_detectGames(const FSList &fslist) {
Common::ADGameDescList descList;
for (int i = 0; i < ARRAYSIZE(gameDescriptions); i++)
- descList.push_back((ADGameDescription *)&gameDescriptions[i]);
+ descList.push_back((const ADGameDescription *)&gameDescriptions[i]);
AdvDetector.registerGameDescriptions(descList);
AdvDetector.setFileMD5Bytes(FILE_MD5_BYTES);
diff --git a/engines/saga/game.cpp b/engines/saga/game.cpp
index 4c9fd608f8..f3f8e1629f 100644
--- a/engines/saga/game.cpp
+++ b/engines/saga/game.cpp
@@ -136,7 +136,7 @@ bool SagaEngine::initGame() {
for (int i = 0; i < ARRAYSIZE(gameDescriptions); i++)
- descList.push_back((ADGameDescription *)&gameDescriptions[i]);
+ descList.push_back((const ADGameDescription *)&gameDescriptions[i]);
AdvDetector.registerGameDescriptions(descList);
AdvDetector.setFileMD5Bytes(FILE_MD5_BYTES);
@@ -181,7 +181,7 @@ DetectedGameList GAME_detectGames(const FSList &fslist) {
Common::ADGameDescList descList;
for (int i = 0; i < ARRAYSIZE(gameDescriptions); i++)
- descList.push_back((ADGameDescription *)&gameDescriptions[i]);
+ descList.push_back((const ADGameDescription *)&gameDescriptions[i]);
AdvDetector.registerGameDescriptions(descList);
AdvDetector.setFileMD5Bytes(FILE_MD5_BYTES);
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index 4c9ad26789..a95aeacdad 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -778,13 +778,13 @@ void InfoDialog::reflowLayout() {
const Common::String InfoDialog::queryResString(int stringno) {
byte buf[256];
- byte *result;
+ const byte *result;
if (stringno == 0)
return String();
if (_vm->_game.version == 8)
- result = (byte *)string_map_table_v8[stringno - 1].string;
+ result = (const byte *)string_map_table_v8[stringno - 1].string;
else if (_vm->_game.version == 7)
result = _vm->getStringAddressVar(string_map_table_v7[stringno - 1].num);
else if (_vm->_game.version == 6)