summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2020-09-19 20:58:37 +0500
committerAlexander Mikhaylenko <exalm7659@gmail.com>2020-11-08 04:51:13 +0500
commitca0cf95448cb6ab405d8a4733569a3fcee900f28 (patch)
tree982b095c693fdad48a91b8df041ccba3d26321d8
parent74079aab95b2c12633cf56ead136abb2809e11a6 (diff)
downloadshared-mime-info-ca0cf95448cb6ab405d8a4733569a3fcee900f28.tar.gz
Add application/nintendo-3ds-executable
According to https://3dbrew.org/wiki/3DSX_Format, they start from '3DSX' magic value and have .3dsx extension.
-rw-r--r--data/freedesktop.org.xml.in8
-rw-r--r--tests/mime-detection/3ds-tsi9.3dsxbin0 -> 1024 bytes
-rw-r--r--tests/mime-detection/list2
3 files changed, 10 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index c1324a0e..4be671d2 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -1843,6 +1843,14 @@ command to generate the output files.
<match offset="256" type="string" value="NCSD"/>
</magic>
</mime-type>
+ <mime-type type="application/x-nintendo-3ds-executable">
+ <comment>Nintendo 3DS Executable</comment>
+ <generic-icon name="application-x-executable"/>
+ <glob pattern="*.3dsx"/>
+ <magic priority="40">
+ <match offset="0" type="string" value="3DSX"/>
+ </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-tsi9.3dsx b/tests/mime-detection/3ds-tsi9.3dsx
new file mode 100644
index 00000000..6e65386f
--- /dev/null
+++ b/tests/mime-detection/3ds-tsi9.3dsx
Binary files differ
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 784c1e41..a50f093e 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -603,6 +603,8 @@ msx2-metal-gear.msx application/x-msx-rom ox
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
+# TSI9 truncated to 1Ko
+3ds-tsi9.3dsx application/x-nintendo-3ds-executable
# Video game packages
# DOOM1.WAD trucated to 1Ko