aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/intro.cpp
diff options
context:
space:
mode:
authorStrangerke2015-12-20 16:02:35 +0100
committerWillem Jan Palenstijn2015-12-23 21:35:31 +0100
commitae9c2fea51adb1e5b713683e1fadfbb11558c267 (patch)
treeebd53caa4aca07f39bed4afc9f103754043d9f14 /engines/lab/intro.cpp
parenta4d3bda5c179fd1019f0812f04e6913fba863c28 (diff)
downloadscummvm-rg350-ae9c2fea51adb1e5b713683e1fadfbb11558c267.tar.gz
scummvm-rg350-ae9c2fea51adb1e5b713683e1fadfbb11558c267.tar.bz2
scummvm-rg350-ae9c2fea51adb1e5b713683e1fadfbb11558c267.zip
LAB: Replace char* by Common::String in several functions
Diffstat (limited to 'engines/lab/intro.cpp')
-rw-r--r--engines/lab/intro.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp
index 5e1a8ce81f..4f9ba59217 100644
--- a/engines/lab/intro.cpp
+++ b/engines/lab/intro.cpp
@@ -63,7 +63,7 @@ void Intro::introEatMessages() {
}
}
-void Intro::doPictText(const char *filename, TextFont *msgFont, bool isScreen) {
+void Intro::doPictText(const Common::String filename, TextFont *msgFont, bool isScreen) {
Common::String path = Common::String("Lab:rooms/Intro/") + filename;
uint timeDelay = (isScreen) ? 35 : 7;
@@ -77,7 +77,7 @@ void Intro::doPictText(const char *filename, TextFont *msgFont, bool isScreen) {
bool doneFl = false;
bool begin = true;
- Common::File *textFile = _vm->_resource->openDataFile(path.c_str());
+ Common::File *textFile = _vm->_resource->openDataFile(path);
byte *textBuffer = new byte[textFile->size()];
textFile->read(textBuffer, textFile->size());
delete textFile;
@@ -203,7 +203,7 @@ void Intro::musicDelay() {
}
}
-void Intro::nReadPict(const char *filename, bool playOnce) {
+void Intro::nReadPict(const Common::String filename, bool playOnce) {
Common::String finalFileName = Common::String("P:Intro/") + filename;
_vm->_music->updateMusic();