Skip to content

Commit a87e63d

Browse files
committed
Fixed mod file for cutscenes
1 parent 971b056 commit a87e63d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mod_player.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,10 @@ void ModPlayer::play(int num, int tempo) {
672672
char name[32];
673673
snprintf(name, sizeof(name), "mod.flashback-%s", p ? p : _names[num * 2]);
674674
if (!f.open(name, "rb", _fs)) {
675-
return;
675+
snprintf(name, sizeof(name), "%s.mod", p ? p : _names[num * 2]);
676+
if (!f.open(name, "rb", _fs)) {
677+
return;
678+
}
676679
}
677680
}
678681
_impl->init(_mix->getSampleRate());

0 commit comments

Comments
 (0)