mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-01 07:46:11 +00:00
hopeyfully this fixes simon2dos
svn-id: r5361
This commit is contained in:
parent
b43410e6f6
commit
d7123f4908
@ -1322,7 +1322,7 @@ void SimonState::o_177()
|
||||
|
||||
talk_with_text(a, b, s, tv->a, tv->b, tv->c);
|
||||
}
|
||||
} else if (_game == GAME_SIMON2WIN || _game == GAME_SIMON2DOS) {
|
||||
} else if (_game & GAME_SIMON2) {
|
||||
uint a = getVarOrByte();
|
||||
uint b = getVarOrByte();
|
||||
Child2 *child = (Child2 *)findChildOfType(getNextItemPtr(), 2);
|
||||
|
@ -4941,10 +4941,13 @@ void SimonState::playMusic(uint music)
|
||||
|
||||
midi.initialize();
|
||||
midi.play();
|
||||
} else {
|
||||
} else if (!(_game & GAME_SIMON2)){
|
||||
midi.shutdown();
|
||||
|
||||
if (_game == GAME_SIMON1DOS) {
|
||||
if (_game & GAME_WIN) {
|
||||
_game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music], SEEK_SET);
|
||||
midi.read_all_songs_old(_game_file);
|
||||
} else {
|
||||
char buf[50];
|
||||
File *f = new File();
|
||||
sprintf(buf, "MOD%d.MUS", music);
|
||||
@ -4955,9 +4958,6 @@ void SimonState::playMusic(uint music)
|
||||
}
|
||||
midi.read_all_songs_old(f);
|
||||
delete f;
|
||||
} else if (_game == GAME_SIMON1WIN) {
|
||||
_game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music], SEEK_SET);
|
||||
midi.read_all_songs_old(_game_file);
|
||||
}
|
||||
|
||||
midi.initialize();
|
||||
|
@ -116,9 +116,9 @@ public:
|
||||
GAME_WIN = 2,
|
||||
|
||||
GAME_SIMON1DOS = 0,
|
||||
GAME_SIMON1WIN = 2,
|
||||
GAME_SIMON2DOS = 1,
|
||||
GAME_SIMON2WIN = 3,
|
||||
GAME_SIMON1WIN = GAME_WIN,
|
||||
GAME_SIMON2DOS = GAME_SIMON2,
|
||||
GAME_SIMON2WIN = GAME_SIMON2 + GAME_WIN,
|
||||
GAME_SIMON1DEMO = 4,
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user