From f0934a700322ae35e0ce7138adcb078323f2ad7b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 11 Dec 2015 01:13:54 +0100 Subject: [PATCH] WEB: Add compatibility for 0.1.0 --- data/compatibility/compat-0.1.0.xml | 88 +++++++++++++++++++++++++++ include/Models/CompatibilityModel.php | 8 ++- 2 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 data/compatibility/compat-0.1.0.xml diff --git a/data/compatibility/compat-0.1.0.xml b/data/compatibility/compat-0.1.0.xml new file mode 100644 index 000000000..337f766cc --- /dev/null +++ b/data/compatibility/compat-0.1.0.xml @@ -0,0 +1,88 @@ + + + + LucasArts + + + Indiana Jones and the Last Crusade (256) + indy3 + 20 + Game will start, but is not playable.The intro freezes on the LucasArts logo - hit escape to proceed.Main bugs: Actors not visible, and an error with walkboxes makes it impossible to walk to anything. + + + Zak McKracken and the Alien Mindbenders (256) + zak256 + 20 + Game will start, but is not playable.The intro freezes on the LucasArts logo - hit escape to proceed.Main bugs: Actors not visible, and an error with walkboxes makes it impossible to walk to anything. + + + The Secret of Monkey Island (EGA) + monkeyega + 5 + Copy protection screen will show, but game crashes shortly afterwards.Graphics decoders and opcodes not implimented yet. + + + LOOM (256 color CD version) + loomcd + 30 + Game is almost playable, but may crash with invalid opcodes and have graphics problems.Intro will crash ScummVM at the end, so hit escape to bypass it. + + + The Secret of Monkey Island (VGA) + monkey + 90 + No known problems - should be playable to the end + + + Monkey Island 2: LeChuck\'s revenge + monkey2 + 90 + No known problems - should be playable to the end + + + Indiana Jones 4 and the Fate of Atlantis + atlantis + 80 + No known problems - should be playable to the end + + + Indiana Jones 4 and the Fate of Atlantis (DEMO) + playfate + 80 + No known problems - should be playable to the end + + + Day Of The Tentacle + tentacle + 90 + No known problems - should be playable to the end + + + Day Of The Tentacle (DEMO) + dottdemo + 90 + No known problems - should be playable to the end + + + Sam & Max + samnmax + 50 + Game is not playable past the Carnival - inventory isn't restored after going to lost & found.MIDI music requires SAMNMAX to be defined. + + + Sam & Max (DEMO) + samdemo + 90 + No known problems - should be playable to the end + + + Full Thottle + ft + 10 + Somewhat playable with #define FULL_THROTTLE + + + + + + diff --git a/include/Models/CompatibilityModel.php b/include/Models/CompatibilityModel.php index b76bf35bb..9b3249b03 100644 --- a/include/Models/CompatibilityModel.php +++ b/include/Models/CompatibilityModel.php @@ -22,10 +22,12 @@ static public function getAllData($version) { $entries = array(); foreach ($a['compatibility']['company'] as $key => $value) { $games = array(); - foreach ($value['games']['game'] as $data) { - $games[] = new CompatGame($data); + if (is_array($value['games'])) { + foreach ($value['games']['game'] as $data) { + $games[] = new CompatGame($data); + } + $entries[$value['name']] = $games; } - $entries[$value['name']] = $games; } return $entries; }