mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
open <_exe_name>.sou if that file exists instead of monster.sou
svn-id: r3509
This commit is contained in:
parent
f61b4b7c96
commit
5ff70c5de1
13
sound.cpp
13
sound.cpp
@ -367,7 +367,18 @@ void Scumm::startSfxSound(void *file) {
|
||||
}
|
||||
|
||||
void *Scumm::openSfxFile() {
|
||||
return fopen("monster.sou", "rb");
|
||||
char buf[50];
|
||||
FILE *file;
|
||||
|
||||
/* Try opening the file <_exe_name>.sou first, eg tentacle.sou.
|
||||
* That way, you can keep .sou files for multiple games in the
|
||||
* same directory */
|
||||
|
||||
sprintf(buf, "%s.sou", _exe_name);
|
||||
file = fopen(buf, "rb");
|
||||
if (!file)
|
||||
file = fopen("monster.sou", "rb");
|
||||
return file;
|
||||
}
|
||||
|
||||
#define NUM_MIXER 4
|
||||
|
Loading…
Reference in New Issue
Block a user