diff options
author | Filippos Karapetis | 2014-12-03 01:43:51 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-12-03 01:43:51 +0200 |
commit | bb31c435bf6502f4e1f94b3de9f046c054031a98 (patch) | |
tree | 5efd773292431e2bbf134d90e63d5771424dbdeb /engines/zvision/sound/zork_raw.cpp | |
parent | 10444ef5683f420f08cfc276349a5771dd0d04e5 (diff) | |
download | scummvm-rg350-bb31c435bf6502f4e1f94b3de9f046c054031a98.tar.gz scummvm-rg350-bb31c435bf6502f4e1f94b3de9f046c054031a98.tar.bz2 scummvm-rg350-bb31c435bf6502f4e1f94b3de9f046c054031a98.zip |
ZVISION: Remove more dead code, and move some debugger functions
Diffstat (limited to 'engines/zvision/sound/zork_raw.cpp')
-rw-r--r-- | engines/zvision/sound/zork_raw.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/engines/zvision/sound/zork_raw.cpp b/engines/zvision/sound/zork_raw.cpp index 485e0b8a49..c26c33a392 100644 --- a/engines/zvision/sound/zork_raw.cpp +++ b/engines/zvision/sound/zork_raw.cpp @@ -21,23 +21,21 @@ */ #include "common/scummsys.h" - -#include "zvision/sound/zork_raw.h" - -#include "zvision/zvision.h" -#include "zvision/detection.h" -#include "zvision/utility/utility.h" - #include "common/file.h" #include "common/str.h" #include "common/stream.h" #include "common/memstream.h" #include "common/bufferedstream.h" #include "common/util.h" - +#include "common/tokenizer.h" #include "audio/audiostream.h" #include "audio/decoders/raw.h" +#include "zvision/sound/zork_raw.h" +#include "zvision/zvision.h" +#include "zvision/detection.h" +#include "zvision/utility/utility.h" + namespace ZVision { const int16 RawChunkStream::_stepAdjustmentTable[8] = { -1, -1, -1, 1, 4, 7, 10, 12}; @@ -255,7 +253,13 @@ Audio::RewindableAudioStream *makeRawZorkStream(const Common::String &filePath, Common::File *file = new Common::File(); assert(engine->getSearchManager()->openFile(*file, filePath)); - Common::String fileName = getFileName(filePath); + // Get the file name + Common::StringTokenizer tokenizer(filePath, "/\\"); + Common::String fileName; + while (!tokenizer.empty()) { + fileName = tokenizer.nextToken(); + } + fileName.toLowercase(); SoundParams soundParams = {}; |