summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-02-25 17:43:34 +0100
committerBastien Nocera <hadess@hadess.net>2020-02-25 17:46:07 +0100
commite5d65cf5bfd9c12f8aaa0de83f8b33ba4f0129a1 (patch)
tree2a442aee437872f5ff0a8c4d11b60efe0ac277e1
parent18bb7cfc6c43d710ecf60339b5dd9bd19c297cdf (diff)
downloadshared-mime-info-e5d65cf5bfd9c12f8aaa0de83f8b33ba4f0129a1.tar.gz
Add new magic for Sega Mega Drive ROMs
eu_en_Sword_of_Vermilion.bin as found on the Mega Drive Mini has "SEGA_MEGA_DRIVE" in the header, with underscores instead of spaces. file and emulators do support it too.
-rw-r--r--data/freedesktop.org.xml.in1
-rw-r--r--tests/mime-detection/eu_en_Sword_of_Vermilion.binbin0 -> 1024 bytes
-rw-r--r--tests/mime-detection/list1
3 files changed, 2 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 1a1a1390..1bf90143 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -2255,6 +2255,7 @@ command to generate the output files.
<magic priority="50">
<match type="string" value="SEGA GENESIS" offset="256"/>
<match type="string" value="SEGA MEGA DRIVE" offset="256"/>
+ <match type="string" value="SEGA_MEGA_DRIVE" offset="256"/>
<match type="string" value="EAGN" offset="640"/>
<match type="string" value="EAMG" offset="640"/>
</magic>
diff --git a/tests/mime-detection/eu_en_Sword_of_Vermilion.bin b/tests/mime-detection/eu_en_Sword_of_Vermilion.bin
new file mode 100644
index 00000000..da0d6ea8
--- /dev/null
+++ b/tests/mime-detection/eu_en_Sword_of_Vermilion.bin
Binary files differ
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 57aa433c..4d11f028 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -545,6 +545,7 @@ game-gear-test.gg application/x-gamegear-rom ox
genesis1.bin application/x-genesis-rom x
genesis2.bin application/x-genesis-rom x
mega-drive-rom.gen application/x-genesis-rom
+eu_en_Sword_of_Vermilion.bin application/x-genesis-rom xo
32x-rom.32x application/x-genesis-32x-rom
pico-rom.bin application/x-sega-pico-rom x
# Kirby's Dream Land truncated to 1Ko