From ae9c2fea51adb1e5b713683e1fadfbb11558c267 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 20 Dec 2015 16:02:35 +0100 Subject: LAB: Replace char* by Common::String in several functions --- engines/lab/intro.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/lab/intro.cpp') 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(); -- cgit v1.2.3