diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/prince/prince.cpp | 4 | ||||
-rw-r--r-- | engines/prince/sound.cpp | 7 | ||||
-rw-r--r-- | engines/prince/sound.h | 1 |
3 files changed, 10 insertions, 2 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index bdb05bfeda..685c397edb 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -138,8 +138,10 @@ void PrinceEngine::init() { if (!sound->open("sound/databank.ptc")) error("Can't open sound/databank.ptc"); + SearchMan.addSubDirectoryMatching(gameDataDir, "all"); + SearchMan.add("all", all); - SearchMan.add("data/voices", voices); + SearchMan.add("voices", voices); SearchMan.add("sound", sound); _graph = new GraphicsMan(this); diff --git a/engines/prince/sound.cpp b/engines/prince/sound.cpp index fcdca8a0d1..425a710aa1 100644 --- a/engines/prince/sound.cpp +++ b/engines/prince/sound.cpp @@ -158,7 +158,10 @@ void MusicPlayer::killMidi() { void MusicPlayer::loadMidi(const char * name) { Common::SeekableReadStream * stream = SearchMan.createReadStreamForMember(name); if (!stream) + { + debug("Can't load midi stream %s", name); return; + } // Stop any currently playing MIDI file killMidi(); @@ -168,7 +171,7 @@ void MusicPlayer::loadMidi(const char * name) { _data = (byte *)malloc(_dataSize); stream->read(_data, _dataSize); - delete stream; + delete stream; // Start playing the music sndMidiStart(); @@ -216,3 +219,5 @@ void MusicPlayer::sendToChannel(byte channel, uint32 b) { } } // End of namespace CGE + +/* vim: set tabstop=4 expandtab!: */ diff --git a/engines/prince/sound.h b/engines/prince/sound.h index 7219411b36..07ac9f38d9 100644 --- a/engines/prince/sound.h +++ b/engines/prince/sound.h @@ -71,3 +71,4 @@ public: #endif +/* vim: set tabstop=4 expandtab!: */ |