mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 02:17:05 +00:00
HOPKINS: Fix loadMusic() regression
We tried to open the base filename, without the .MOD or .TWA extension, since append() returns the new filename, rather than appending in place.
This commit is contained in:
parent
2e3f4619fb
commit
3705880357
@ -417,7 +417,7 @@ void SoundManager::loadMusic(const Common::Path &file) {
|
||||
Common::File f;
|
||||
if (_vm->getPlatform() == Common::kPlatformOS2 || _vm->getPlatform() == Common::kPlatformBeOS) {
|
||||
Common::Path filename(file);
|
||||
filename.append(".MOD");
|
||||
filename.appendInPlace(".MOD");
|
||||
|
||||
if (!f.open(filename))
|
||||
error("Error opening file %s", filename.toString().c_str());
|
||||
@ -438,7 +438,7 @@ void SoundManager::loadMusic(const Common::Path &file) {
|
||||
|
||||
} else {
|
||||
Common::Path filename(file);
|
||||
filename.append(".TWA");
|
||||
filename.appendInPlace(".TWA");
|
||||
|
||||
if (!f.open(filename))
|
||||
error("Error opening file %s", filename.toString().c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user