aboutsummaryrefslogtreecommitdiff
path: root/scumm/sound.cpp
diff options
context:
space:
mode:
authorMax Horn2005-04-09 11:59:43 +0000
committerMax Horn2005-04-09 11:59:43 +0000
commit34098ae3c738b553c4b12377ba74b1d80072e41b (patch)
treeda42f614fdce06e856fcfdd7c8afaebbc35f3830 /scumm/sound.cpp
parentdb43946f05b299bfc480bca391106e9750f04c6a (diff)
downloadscummvm-rg350-34098ae3c738b553c4b12377ba74b1d80072e41b.tar.gz
scummvm-rg350-34098ae3c738b553c4b12377ba74b1d80072e41b.tar.bz2
scummvm-rg350-34098ae3c738b553c4b12377ba74b1d80072e41b.zip
Simplify the substResFileName system a bit
svn-id: r17475
Diffstat (limited to 'scumm/sound.cpp')
-rw-r--r--scumm/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 60d183bf47..263d6ed6cb 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -183,7 +183,7 @@ void Sound::playSound(int soundID, int heOffset, int heChannel, int heFlags) {
sprintf(buf, "%s.he4", _vm->getGameName());
if (_vm->_substResFileNameIndex > 0) {
- _vm->generateSubstResFileName(buf, buf1, 128, 0, _vm->_substResFileNameIndex);
+ _vm->generateSubstResFileName(buf, buf1, sizeof(buf1));
strcpy(buf, buf1);
}
if (musicFile.open(buf) == false) {
@@ -1121,7 +1121,7 @@ ScummFile *Sound::openSfxFile() {
if (_vm->_substResFileNameIndex > 0) {
char buf1[128];
- _vm->generateSubstResFileName(buf, buf1, 128, 0, _vm->_substResFileNameIndex);
+ _vm->generateSubstResFileName(buf, buf1, sizeof(buf1));
strcpy(buf, buf1);
}
if (file->open(buf) && _vm->_heversion <= 72)