mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-16 06:49:58 +00:00
maybe a fix for bug #595813, SIMON: fails to initialise midi
svn-id: r5203
This commit is contained in:
parent
13808c2a3b
commit
4cbab55b7a
@ -4880,7 +4880,10 @@ void SimonState::playMusic(uint music)
|
||||
|
||||
/* FIXME: not properly implemented */
|
||||
if (_game & GAME_WIN) {
|
||||
_game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music] - 1, SEEK_SET);
|
||||
int32 offset = _game_offsets_ptr[gss->MUSIC_INDEX_BASE + music];
|
||||
if (_game & GAME_SIMON2)
|
||||
offset--;
|
||||
_game_file->seek(offset, SEEK_SET);
|
||||
File *f = _game_file;
|
||||
midi.read_all_songs(f);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user