mime(cia): Add nintendo 3ds cia mime

This commit is contained in:
js0ny 2026-03-06 04:49:15 +00:00
parent 130a16e67f
commit 7e0e7fcae8
2 changed files with 20 additions and 0 deletions

View file

@ -114,6 +114,7 @@ in {
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-nix">
<comment>Nix Source Code</comment>
<comment xml:lang="zh_CN">Nix </comment>
<glob pattern="*.nix"/>
<sub-class-of type="text/plain"/>
</mime-type>
@ -125,6 +126,7 @@ in {
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-pdx-descriptor">
<comment>Paradox Mod Descriptor</comment>
<comment xml:lang="zh_CN">Paradox Mod </comment>
<sub-class-of type="text/plain"/>
<glob pattern="*.mod" weight="80"/> <magic priority="80">
<match value="name=" type="string" offset="0:200"/>
@ -135,5 +137,19 @@ in {
</mime-type>
</mime-info>
'';
# Nintendo CTR Importable Archive (CIA) File
"mime/packages/ctr-cia.xml".text = ''
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-ctr-importable-archive">
<comment>Nintendo 3DS CTR Importable Archive</comment>
<comment xml:lang="zh_CN">3DS CTR (CIA)</comment>
<glob pattern="*.cia"/>
<magic priority="50">
<match type="string" offset="0" value="\x20\x20\x00\x00\x00\x00\x00\x00"/>
</magic>
</mime-type>
</mime-info>
'';
};
}