aboutsummaryrefslogtreecommitdiff
path: root/queen/sound.cpp
diff options
context:
space:
mode:
authorChris Apers2004-03-17 14:10:51 +0000
committerChris Apers2004-03-17 14:10:51 +0000
commit6e1200dc6788ee24e46f17d084254f6cd84bb95a (patch)
tree105ebc42e9766e757d30aad36097d13939ed013a /queen/sound.cpp
parent1ca917d81bef47379066d229142f8f86c1aae1e7 (diff)
downloadscummvm-rg350-6e1200dc6788ee24e46f17d084254f6cd84bb95a.tar.gz
scummvm-rg350-6e1200dc6788ee24e46f17d084254f6cd84bb95a.tar.bz2
scummvm-rg350-6e1200dc6788ee24e46f17d084254f6cd84bb95a.zip
Added PalmOS support
svn-id: r13336
Diffstat (limited to 'queen/sound.cpp')
-rw-r--r--queen/sound.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/queen/sound.cpp b/queen/sound.cpp
index 8d560a9af8..26c75af9a1 100644
--- a/queen/sound.cpp
+++ b/queen/sound.cpp
@@ -90,7 +90,11 @@ void Sound::playSfx(uint16 sfx, bool isSpeech) {
if (sfx != 0) {
char name[13];
+#ifndef __PALM_OS__
strcpy(name, _sfxName[sfx - 1]);
+#else
+ strncpy(name, _sfxName + 10 * (sfx - 1), 10); // saved as 8char + /0/0
+#endif
strcat(name, ".SB");
waitFinished(isSpeech);
sfxPlay(name, isSpeech);