summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2020-09-19 20:58:20 +0500
committerAlexander Mikhaylenko <exalm7659@gmail.com>2020-11-08 04:51:13 +0500
commit74079aab95b2c12633cf56ead136abb2809e11a6 (patch)
tree852879390633701bc8d36f3901d2007644799008
parent34d4f099de981758d7896345fa9ae138a168534a (diff)
downloadshared-mime-info-74079aab95b2c12633cf56ead136abb2809e11a6.tar.gz
Add application/x-nintendo-3ds-rom
Nintendo 3DS ROMs can have *.3ds or *.cci extensions. According to https://3dbrew.org/wiki/CCI, they have 'NCSD' magic number at 0x100 offset.
-rw-r--r--data/freedesktop.org.xml.in9
-rw-r--r--tests/mime-detection/3ds-tloz-mm.3dsbin0 -> 1024 bytes
-rw-r--r--tests/mime-detection/list2
3 files changed, 11 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 9d57cb1f..c1324a0e 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -1834,6 +1834,15 @@ command to generate the output files.
<generic-icon name="application-x-executable"/>
<glob pattern="*.nds"/>
</mime-type>
+ <mime-type type="application/x-nintendo-3ds-rom">
+ <comment>Nintendo 3DS ROM</comment>
+ <generic-icon name="application-x-executable"/>
+ <glob pattern="*.3ds"/>
+ <glob pattern="*.cci"/>
+ <magic>
+ <match offset="256" type="string" value="NCSD"/>
+ </magic>
+ </mime-type>
<mime-type type="application/x-pc-engine-rom">
<comment>PC Engine ROM</comment>
<generic-icon name="application-x-executable"/>
diff --git a/tests/mime-detection/3ds-tloz-mm.3ds b/tests/mime-detection/3ds-tloz-mm.3ds
new file mode 100644
index 00000000..24e274c8
--- /dev/null
+++ b/tests/mime-detection/3ds-tloz-mm.3ds
Binary files differ
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 92499711..784c1e41 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -601,6 +601,8 @@ msx-penguin-adventure.msx application/x-msx-rom ox
msx2-metal-gear.msx application/x-msx-rom ox
# Wario Land for Virtual Boy truncated to 1Ko
virtual-boy-wario-land.vb application/x-virtual-boy-rom ox
+# The Legend of Zelda: Majora's Mask 3D truncated to 1Ko
+3ds-tloz-mm.3ds application/x-nintendo-3ds-rom
# Video game packages
# DOOM1.WAD trucated to 1Ko