From 9defe4fc1880ab8926c5cdf167f35985c7ee9afc Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 17 Apr 2004 16:29:03 +0000 Subject: Removed XOR encoding stuff from File class; instead the new Scumm::XORFile class provides this functionality now svn-id: r13597 --- scumm/sound.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scumm/sound.cpp') diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 8d40f16c64..a668c8c82a 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -892,7 +892,7 @@ void Sound::startSfxSound(File *file, int file_size, PlayingSoundHandle *handle, File *Sound::openSfxFile() { char buf[256]; - File *file = new File(); + XORFile *file = new XORFile(); _offsetTable = NULL; struct SoundFileExtensions { @@ -935,7 +935,8 @@ File *Sound::openSfxFile() { if (!file->isOpen()) { sprintf(buf, "%s.tlk", _vm->getGameName()); - file->open(buf, _vm->getGameDataPath(), File::kFileReadMode, 0x69); + file->open(buf); + file->setEnc(0x69); _soundMode = kVOCMode; } else if (_soundMode != kVOCMode) { /* Now load the 'offset' index in memory to be able to find the MP3 data -- cgit v1.2.3