aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/akos.cpp2
-rw-r--r--scumm/resource.cpp10
-rw-r--r--scumm/scumm.h1
3 files changed, 2 insertions, 11 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp
index 31cac1729e..5cf8344375 100644
--- a/scumm/akos.cpp
+++ b/scumm/akos.cpp
@@ -588,7 +588,7 @@ byte AkosRenderer::codec1(int xmoveCur, int ymoveCur) {
/* implement custom scale table */
v1.scaletable = (_vm->_features & GF_HUMONGOUS) ? oldScaleTable : defaultScaleTable;
- if (_vm->VAR_CUSTOMSCALETABLE != 0xFF && _vm->isGlobInMemory(rtString, _vm->VAR(_vm->VAR_CUSTOMSCALETABLE))) {
+ if (_vm->VAR_CUSTOMSCALETABLE != 0xFF && _vm->isResourceLoaded(rtString, _vm->VAR(_vm->VAR_CUSTOMSCALETABLE))) {
v1.scaletable = _vm->getStringAddressVar(_vm->VAR_CUSTOMSCALETABLE);
}
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index 4b9b64324d..0a9f253311 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -2201,7 +2201,7 @@ void ScummEngine::loadPtrToResource(int type, int resindex, const byte *source)
}
bool ScummEngine::isResourceLoaded(int type, int idx) const {
- if (!validateResource("isLoaded", type, idx))
+ if (!validateResource("isResourceLoaded", type, idx))
return false;
return res.address[type][idx] != NULL;
}
@@ -2426,14 +2426,6 @@ void ScummEngine::allocateArrays() {
allocResTypeData(rtImage, MKID('AWIZ'), _numImages, "images", 1);
}
-
-bool ScummEngine::isGlobInMemory(int type, int idx) const{
- if (!validateResource("isGlobInMemory", type, idx))
- return false;
-
- return res.address[type][idx] != NULL;
-}
-
void ScummEngine::dumpResource(const char *tag, int idx, const byte *ptr, int length) {
char buf[256];
File out;
diff --git a/scumm/scumm.h b/scumm/scumm.h
index 8b0a022185..ec6317201c 100644
--- a/scumm/scumm.h
+++ b/scumm/scumm.h
@@ -661,7 +661,6 @@ protected:
int getResourceSize(int type, int idx);
public:
- bool isGlobInMemory(int type, int index) const;
bool isResourceLoaded(int type, int index) const;
byte *getResourceAddress(int type, int i);
byte *getStringAddress(int i);