aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core/resource_key.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/core/resource_key.cpp')
-rw-r--r--engines/titanic/core/resource_key.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/titanic/core/resource_key.cpp b/engines/titanic/core/resource_key.cpp
index 3db5812d7d..e10b3be4cb 100644
--- a/engines/titanic/core/resource_key.cpp
+++ b/engines/titanic/core/resource_key.cpp
@@ -58,7 +58,7 @@ void CResourceKey::setValue(const CString &name) {
_value = _value.mid(idx + 1);
}
-CString CResourceKey::exists() const {
+CString CResourceKey::getFilename() const {
CString name = _key;
// Check for a resource being specified within an ST container
@@ -68,10 +68,9 @@ CString CResourceKey::exists() const {
name += ".st";
}
- // The original did tests for the file in the different
- // asset paths, which aren't needed in ScummVM
- Common::File f;
- return f.exists(name) ? name : CString();
+ // The original did tests for the file in the different asset paths,
+ // which aren't needed in ScummVM, so just return full name
+ return name;
}
bool CResourceKey::scanForFile() const {