aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorStrangerke2014-12-17 22:31:29 +0100
committerStrangerke2014-12-17 22:31:29 +0100
commitbb01fa31f80e45f0537b3ea02083eed113c41f9c (patch)
tree3da9cc329aa03cadc0c1319b3f2bbca2e47a588e /engines/access
parente141da25e80fcf9c124661883a1818e13168bd93 (diff)
downloadscummvm-rg350-bb01fa31f80e45f0537b3ea02083eed113c41f9c.tar.gz
scummvm-rg350-bb01fa31f80e45f0537b3ea02083eed113c41f9c.tar.bz2
scummvm-rg350-bb01fa31f80e45f0537b3ea02083eed113c41f9c.zip
ACCESS: Constify some resources
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/amazon/amazon_resources.cpp14
-rw-r--r--engines/access/amazon/amazon_resources.h14
2 files changed, 14 insertions, 14 deletions
diff --git a/engines/access/amazon/amazon_resources.cpp b/engines/access/amazon/amazon_resources.cpp
index e61c704b1d..2010c7d842 100644
--- a/engines/access/amazon/amazon_resources.cpp
+++ b/engines/access/amazon/amazon_resources.cpp
@@ -309,7 +309,7 @@ const byte CURSHELP[] = {
0x04, 0x06, 0x24, 0x22, 0x22, 0x22, 0x22, 0x20,
0x05, 0x04, 0x20, 0x20, 0x20, 0x20
};
-const byte *CURSORS[10] = {
+const byte *const CURSORS[10] = {
MOUSE0, MOUSE1, MOUSE2, MOUSE3, CURSEYE, CURSHAND, CURSGET, CURSCLIMB, CURSTALK, CURSHELP
};
@@ -713,7 +713,7 @@ const byte PIT[] = {
0x62, 0x0, 0x4D, 0x0, 0x2, 0x0, 0xFF, 0xFF, 0x0
};
-const byte *ROOM_TABLE[] = {
+const byte *const ROOM_TABLE[] = {
CREDITS, nullptr, nullptr, nullptr, ALLISTER, HALL, JASONLAB, nullptr,
ALLENLAB, OUTVAULT, VAULT, LIBRARY, JASAPT, RANSACKED, MEAN1, FLYSOUTH,
CUZCO, INAIR, GREENMONKEY, INPLANE, PILFALL, COCKPIT, CRASH, SINKING,
@@ -724,7 +724,7 @@ const byte *ROOM_TABLE[] = {
CAVE, nullptr, nullptr, nullptr, PIT, nullptr, nullptr
};
-const char *ROOM_DESCR[] = {
+const char *const ROOM_DESCR[] = {
"Credits", nullptr, nullptr, nullptr, "Outside of Allister Center",
"Hall", "Jason's Lab", nullptr, "Allen's Lab", "Outside of the Vault",
"Inside the Vault", "Reader", "Jason's Apartment", "Jason's ransacked apartment", "Cutscene 1",
@@ -1080,7 +1080,7 @@ const byte ROOM_TABLE62_DEMO[] = {
0x00, 0x00, 0x00, 0x01, 0x00, 0xFF, 0xFF, 0x00
};
-const byte *ROOM_TABLE_DEMO[] = {
+const byte *const ROOM_TABLE_DEMO[] = {
ROOM_TABLE1_DEMO, nullptr, nullptr, nullptr, ROOM_TABLE5_DEMO,
ROOM_TABLE6_DEMO, ROOM_TABLE7_DEMO, nullptr, ROOM_TABLE9_DEMO, ROOM_TABLE10_DEMO,
ROOM_TABLE11_DEMO, ROOM_TABLE12_DEMO, ROOM_TABLE13_DEMO, ROOM_TABLE14_DEMO, ROOM_TABLE15_DEMO,
@@ -1526,7 +1526,7 @@ const byte CHAP8[] = {
0x60, 0x00, 0x02, 0x00, 0xFF, 0xFF
};
-const byte *CHARTBL[] = {
+const byte *const CHARTBL[] = {
ELAINE, LIB, FLASHBACK, ALLENDIE, OVERBOARD, PILOT2, TIKAGENT,
BARTENDER, PILOT1, COOK, BEXPLODE, THORNICK, MAYA, CAPTAIN,
ALLEN, ARCH, GUARD1, MCANOE, CAMPFIRE, COLONEL, SOLDIERS,
@@ -1535,7 +1535,7 @@ const byte *CHARTBL[] = {
CRACK, LETTER
};
-const byte *CHARTBL_DEMO[] = {
+const byte *const CHARTBL_DEMO[] = {
ELAINE, LIB, FLASHBACK, ALLENDIE, OVERBOARD_DEMO, PILOT2, TIKAGENT,
BARTENDER, PILOT1, COOK, BEXPLODE, THORNICK, MAYA, CAPTAIN,
ALLEN, ARCH, GUARD1, MCANOE, CAMPFIRE, COLONEL, SOLDIERS,
@@ -2156,7 +2156,7 @@ const byte MAP2[32] = {
0, 1, 0, 1, 0, 0, 0, 0xFF
};
-const byte *MAPTBL[3] = {MAP0, MAP1, MAP2};
+const byte *const MAPTBL[3] = {MAP0, MAP1, MAP2};
const int DOWNRIVEROBJ[14][4] = {
{ 3, 77, 0, 40 },
diff --git a/engines/access/amazon/amazon_resources.h b/engines/access/amazon/amazon_resources.h
index e7afa2a977..a952860bc2 100644
--- a/engines/access/amazon/amazon_resources.h
+++ b/engines/access/amazon/amazon_resources.h
@@ -45,7 +45,7 @@ struct RiverStruct {
extern const char *const FILENAMES[];
extern const char *const FILENAMES_DEMO[];
-extern const byte *CURSORS[10];
+extern const byte *const CURSORS[10];
extern const int TRAVEL_POS[][2];
@@ -62,13 +62,13 @@ extern const int OVEROFFULY[];
extern const int OVEROFFDLX[];
extern const int OVEROFFDLY[];
-extern const byte *ROOM_TABLE[];
-extern const char *ROOM_DESCR[];
-extern const byte *ROOM_TABLE_DEMO[];
+extern const byte *const ROOM_TABLE[];
+extern const char *const ROOM_DESCR[];
+extern const byte *const ROOM_TABLE_DEMO[];
extern const int ROOM_NUMB;
-extern const byte *CHARTBL[];
-extern const byte *CHARTBL_DEMO[];
+extern const byte *const CHARTBL[];
+extern const byte *const CHARTBL_DEMO[];
extern const char *const INVENTORY_NAMES[];
@@ -123,7 +123,7 @@ extern const byte MAP0[26];
extern const byte MAP1[27];
extern const byte MAP2[32];
-extern const byte *MAPTBL[3];
+extern const byte *const MAPTBL[3];
extern const int DOWNRIVEROBJ[14][4];