diff options
author | Travis Howell | 2003-05-01 07:55:55 +0000 |
---|---|---|
committer | Travis Howell | 2003-05-01 07:55:55 +0000 |
commit | 5c987fac47bcac7c2353f48f2b485d49aa506ee9 (patch) | |
tree | 1d23f5bebe86ccf06b6855939994bd95c3471525 /simon/simon.cpp | |
parent | 48293bd132159d73c6e2ed512e44f5f1a80b84e4 (diff) | |
download | scummvm-rg350-5c987fac47bcac7c2353f48f2b485d49aa506ee9.tar.gz scummvm-rg350-5c987fac47bcac7c2353f48f2b485d49aa506ee9.tar.bz2 scummvm-rg350-5c987fac47bcac7c2353f48f2b485d49aa506ee9.zip |
Add a few Amiga games corrections and todos
svn-id: r7238
Diffstat (limited to 'simon/simon.cpp')
-rw-r--r-- | simon/simon.cpp | 52 |
1 files changed, 32 insertions, 20 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index ec5ac17033..573df4459d 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -1430,6 +1430,7 @@ uint SimonState::item_get_icon_number(Item *item) { void SimonState::loadIconFile() { File in; if (_game & GF_AMIGAS) + /* TODO Add support for decruncher */ in.open("icon.pkd", _gameDataPath); else in.open("ICON.DAT", _gameDataPath); @@ -4419,6 +4420,7 @@ void SimonState::read_vga_from_datfile_1(uint vga_id) { if (_game == GAME_SIMON1CD32) { sprintf(buf, "0%d.out", vga_id); } else if (_game == GAME_SIMON1AMIGA) { + /* TODO Add support for decruncher */ sprintf(buf, "0%d.pkd", vga_id); } else { sprintf(buf, "0%d.VGA", vga_id); @@ -4452,6 +4454,7 @@ byte *SimonState::read_vga_from_datfile_2(uint id) { if (_game == GAME_SIMON1CD32) { sprintf(buf, "%.3d%d.out", id >> 1, (id & 1) + 1); } else if (_game == GAME_SIMON1AMIGA) { + /* TODO Add support for decruncher */ sprintf(buf, "%.3d%d.pkd", id >> 1, (id & 1) + 1); } else { sprintf(buf, "%.3d%d.VGA", id >> 1, (id & 1) + 1); @@ -4734,7 +4737,7 @@ void SimonState::go() { _subtitles = true; midi._midi_sfx_toggle = false; - + while (1) { hitarea_stuff(); handle_verb_clicked(_verb_hitarea); @@ -5054,28 +5057,37 @@ void SimonState::playMusic(uint music_unk, uint music) { _vc70_var1 = 0xFFFF; _vc72_var3 = 0xFFFF; _midi_unk2 = 0xFFFF; - } else if (!(_game & GF_DEMO) && !(_game & GF_AMIGAS)){ // Simon 1 music - midi.shutdown(); - if (_game & GF_WIN) { - _game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music], SEEK_SET); - midi.read_all_songs(_game_file, music); - } else if (_game & GF_TALKIE) { - _game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music], SEEK_SET); - midi.read_all_songs_old(_game_file, music); + } else { // Simon 1 music + if (_game & GF_AMIGAS) { + if (_game != GAME_SIMON1CD32) { + /* TODO Add support for decruncher */ + } + /* TODO Add Protracker support for simon1amiga/cd32 */ + } else if (_game & GF_DEMO) { + /* TODO Add music support for simon1demo */ } else { - char buf[50]; - File *f = new File(); - sprintf(buf, "MOD%d.MUS", music); - f->open(buf, _gameDataPath); - if (f->isOpen() == false) { - warning("Can't load music from '%s'", buf); - return; + midi.shutdown(); + if (_game & GF_WIN) { + _game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music], SEEK_SET); + midi.read_all_songs(_game_file, music); + } else if (_game & GF_TALKIE) { + _game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music], SEEK_SET); + midi.read_all_songs_old(_game_file, music); + } else { + char buf[50]; + File *f = new File(); + sprintf(buf, "MOD%d.MUS", music); + f->open(buf, _gameDataPath); + if (f->isOpen() == false) { + warning("Can't load music from '%s'", buf); + return; + } + midi.read_all_songs_old(f, music); + delete f; } - midi.read_all_songs_old(f, music); - delete f; + midi.initialize(); + midi.play(); } - midi.initialize(); - midi.play(); } } |