Commit fbc73fb1 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko Committed by Bastien Nocera
Browse files

Differentiate Neo Geo Pocket Color ROMs from non-Color ones

Add an 'application/x-neo-geo-pocket-color-rom' MIME type, as opposed to
'application-x-neo-geo-pocket-rom'.

Neo Geo Pocket Color ROMs usually have '.ngc' extension instead of
'.ngp', and their 0x23rd byte in the header is different from NGP ones.

The first 9 characters in the header can either be "COPYRIGHT" or
" LICENSED" with a leading space.

Also update application/x-neo-geo-pocket-rom test to use an actual NGP
game instead of a Neo-Geo Pocket Color one.

http://bugzilla.freedesktop.org/show_bug.cgi?id=106055
parent 8311e418
......@@ -3024,7 +3024,21 @@ command to generate the output files.
<generic-icon name="application-x-executable"/>
<glob pattern="*.ngp"/>
<magic>
<match offset="0" type="string" value="COPYRIGHT BY SNK CORPORATION"/>
<match offset="35" type="byte" value="0x0">
<match offset="0" type="string" value="COPYRIGHT BY SNK CORPORATION"/>
<match offset="0" type="string" value=" LICENSED BY SNK CORPORATION"/>
</match>
</magic>
</mime-type>
<mime-type type="application/x-neo-geo-pocket-color-rom">
<_comment>Neo-Geo Pocket Color ROM</_comment>
<generic-icon name="application-x-executable"/>
<glob pattern="*.ngc"/>
<magic>
<match offset="35" type="byte" value="0x10">
<match offset="0" type="string" value="COPYRIGHT BY SNK CORPORATION"/>
<match offset="0" type="string" value=" LICENSED BY SNK CORPORATION"/>
</match>
</magic>
</mime-type>
<mime-type type="application/x-nes-rom">
......
......@@ -528,8 +528,10 @@ m64p_test_rom.z64 application/x-n64-rom
wii.wad application/x-wii-wad x
# Mariobros from Atari 7800 truncated to 1Ko
atari-7800-test.A78 application/x-atari-7800-rom
# Sonic the Hedgehog - Pocket Adventure truncated to 1Ko
# Samurai Shodown truncated to 1Ko
neo-geo-pocket-test.ngp application/x-neo-geo-pocket-rom
# Sonic the Hedgehog - Pocket Adventure truncated to 1Ko
neo-geo-pocket-color-test.ngc application/x-neo-geo-pocket-color-rom
# Pac-Man from Atari 2600 truncated to 1Ko
atari-2600-test.A26 application/x-atari-2600-rom ox
# Metroid truncated to 1Ko
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment