aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/resource.cpp
diff options
context:
space:
mode:
authorMax Horn2006-04-23 17:39:31 +0000
committerMax Horn2006-04-23 17:39:31 +0000
commit4b6f90945bfc8ad6c51a46747a0c133393b1fa9b (patch)
tree3d470ebd52b587f9d3ae731ae00e9ffc209771c0 /engines/scumm/resource.cpp
parent0d67640a58b044ade0605319e091df9b2f666e4a (diff)
downloadscummvm-rg350-4b6f90945bfc8ad6c51a46747a0c133393b1fa9b.tar.gz
scummvm-rg350-4b6f90945bfc8ad6c51a46747a0c133393b1fa9b.tar.bz2
scummvm-rg350-4b6f90945bfc8ad6c51a46747a0c133393b1fa9b.zip
Modified openFile and openResourceFile to take a Common::String instead of a char pointer
svn-id: r22112
Diffstat (limited to 'engines/scumm/resource.cpp')
-rw-r--r--engines/scumm/resource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/scumm/resource.cpp b/engines/scumm/resource.cpp
index 6ee4820f07..2218943cda 100644
--- a/engines/scumm/resource.cpp
+++ b/engines/scumm/resource.cpp
@@ -115,7 +115,7 @@ void ScummEngine::openRoom(const int room) {
VAR(VAR_CURRENTDISK) = diskNumber;
// Try to open the file
- result = openResourceFile(filename.c_str(), encByte);
+ result = openResourceFile(filename, encByte);
if (result) {
if (room == 0)
@@ -185,7 +185,7 @@ void ScummEngine::readRoomsOffsets() {
}
}
-bool ScummEngine::openFile(BaseScummFile &file, const char *filename, bool resourceFile) {
+bool ScummEngine::openFile(BaseScummFile &file, const Common::String &filename, bool resourceFile) {
bool result = false;
if (!_containerFile.empty()) {
@@ -204,8 +204,8 @@ bool ScummEngine::openFile(BaseScummFile &file, const char *filename, bool resou
return result;
}
-bool ScummEngine::openResourceFile(const char *filename, byte encByte) {
- debugC(DEBUG_GENERAL, "openResourceFile(%s)", filename);
+bool ScummEngine::openResourceFile(const Common::String &filename, byte encByte) {
+ debugC(DEBUG_GENERAL, "openResourceFile(%s)", filename.c_str());
if (openFile(*_fileHandle, filename, true)) {
_fileHandle->setEnc(encByte);