From c89d02e4cf58309c5e5ddf08e7253aa266248f26 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Sat, 8 Feb 2020 22:06:42 +1100 Subject: Uzebox: files with headers don't always have the identification string. Changed to use extensions instead. New working software list additions (from the uzebox site and forum) ---------------------------- Final Blood Frog Feast Laser Puzzle Laser Puzzle II Melli's RetroLand Reels of Fortune Uzebox Tactics Uzi Wars --- hash/uzebox.xml | 96 +++++++++++++++++++++++++++++++++++++++++++++ src/mame/drivers/uzebox.cpp | 2 +- 2 files changed, 97 insertions(+), 1 deletion(-) diff --git a/hash/uzebox.xml b/hash/uzebox.xml index e459ec8cb0c..cc5614ea866 100644 --- a/hash/uzebox.xml +++ b/hash/uzebox.xml @@ -1426,4 +1426,100 @@ + + + Final Blood + 2018 + Belogic + + + + + + + + + + Frog Feast + 201? + Belogic + + + + + + + + + + Laser Puzzle + 201? + Belogic + + + + + + + + + + Laser Puzzle II + 201? + Belogic + + + + + + + + + + Melli's RetroLand + 201? + Belogic + + + + + + + + + + Reels of Fortune + 2019 + Belogic + + + + + + + + + + Uzebox Tactics + 2019 + Belogic + + + + + + + + + + Uzi Wars + 201? + Belogic + + + + + + + diff --git a/src/mame/drivers/uzebox.cpp b/src/mame/drivers/uzebox.cpp index a4b638a0c2a..ea0fd72226c 100644 --- a/src/mame/drivers/uzebox.cpp +++ b/src/mame/drivers/uzebox.cpp @@ -268,7 +268,7 @@ DEVICE_IMAGE_LOAD_MEMBER(uzebox_state::cart_load) std::vector data(size); image.fread(&data[0], size); - if (!strncmp((const char*)&data[0], "UZEBOX", 6)) + if (image.is_filetype("uze")) memcpy(m_cart->get_rom_base(), &data[0x200], size - 0x200); else memcpy(m_cart->get_rom_base(), &data[0], size); -- cgit v1.2.3