From 9e9c25508bad18ebb57d097ae5667d1ca1483cb0 Mon Sep 17 00:00:00 2001 From: Adrien Plazas <kekun.plazas@laposte.net> Date: Thu, 28 Jul 2016 14:01:45 +0200 Subject: [PATCH] Add a Sega CD/Mega-CD MIME type --- freedesktop.org.xml.in | 17 +++++++++++++++++ tests/list | 2 ++ tests/sega-cd-test.iso | Bin 0 -> 1024 bytes 3 files changed, 19 insertions(+) create mode 100644 tests/sega-cd-test.iso diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 1c990fe..ba4b79f 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -1716,6 +1716,23 @@ command to generate the output files. <generic-icon name="text-x-script"/> <glob pattern="*.es"/> </mime-type> + <mime-type type="application/x-sega-cd-rom"> + <!-- Translate this to Mega-CD if the console was known as such in your locale + Should be Mega-CD in all but en_US, Mexico, Canada and Brazil: https://en.wikipedia.org/wiki/Sega_CD --> + <_comment>Sega CD disc image</_comment> + <generic-icon name="application-x-executable"/> + <!-- Also matches the application/x-genesis-rom magic values, hence the higher priority --> + <magic priority="60"> + <match type="string" value="SEGADISCSYSTEM" offset="0"> + <match type="string" value="SEGA" offset="256"/> + </match> + <match type="string" value="SEGADISCSYSTEM" offset="16"> + <match type="string" value="SEGA" offset="272"/> + </match> + </magic> + <glob pattern="*.bin"/> + <glob pattern="*.iso"/> + </mime-type> <mime-type type="application/x-saturn-rom"> <_comment>Sega Saturn disc image</_comment> <generic-icon name="application-x-executable"/> diff --git a/tests/list b/tests/list index 6549ef2..6b75abb 100644 --- a/tests/list +++ b/tests/list @@ -466,6 +466,8 @@ genesis2.bin application/x-genesis-rom x game-boy-test.gb application/x-gameboy-rom # The Legend of Zelda: Link's Awakening truncated to 1Ko game-boy-color-test.gbc application/x-gameboy-rom +# Sonic CD truncated to 1Ko +sega-cd-test.iso application/x-sega-cd-rom x # NiGHTS into Dreams truncated to 1Ko saturn-test.bin application/x-saturn-rom x m64p_test_rom.n64 application/x-n64-rom diff --git a/tests/sega-cd-test.iso b/tests/sega-cd-test.iso new file mode 100644 index 0000000000000000000000000000000000000000..26ff21597d626abcf21857a23bc2d4edd80a784e GIT binary patch literal 1024 zcmdT@&ui0g6n{x|1Q}hG9Xtqq!yTs3(ODQ4rCFAIO|zP`CatjB4q{JAZ)LQjksWsI z$?IhQg;Lc11?okrm(jl<?LnF}%@4mxt%9(F;ANliUf$>B<@53$`5HtPB*hSoeWOZL zM1yjrVhCylfdOEQvZjclgcL9bM{kiWkfK3jK_GiSyS<gq=b{%b1EP6Rjhv(_PYG^_ zcj8nu!=_M^<N2{#Bv>SpOp0YWGvCGq!~JW$tfHLR&feQX%w)5Odl%^buk_#gYaRe= z`fO<mXUK40fvLMWmni^yb%T2i%yU<C;hOd~@$3MYyTB$bfFwYg?>P2o1VIqQM!7e$ zZ3x3Kwv{yBZZ(^~xoMirtK(y62SGR*4CcR!X<8%O>F{X)$19v$*2{@)k8RtYP|aAj z`3unLBwDT3gT%>6x7&SlI_UL!M@KI#v)>;MhvV_0t!14TJZB8HJ@X>nMZVc=wfXc4 z%x1Ghlso<K-ls8q3PSTE&x7N%>6Zmi(aTazBoglKV_C<VCJ`MUD<aWEf{*mF3Q!Vu zYerEiDOeH|qbS5D28mWBdPP?ZVr+&7OLVItyXtc}&tIl{o%36MlAF>)b%u%hM2PmC zYQXiKFu?x&5?r_`P9aP|;UTCuzCHOIdRojIx3zZ=GC%MT5ID?J&(>GhcW5;-P>A@_ h`uC_lezsh{vex&Lah!@{?oVg!ORgXF-aDioe*zLQD=h#3 literal 0 HcmV?d00001 -- 2.7.4