add ContentType to file associations (used for mime/packages generation on Linux)
This commit is contained in:
parent
84ea550b55
commit
284f3dc347
@ -218,6 +218,8 @@ namespace UniversalEditor
|
||||
|
||||
private int[] mvarMagicByteOffsets = new int[0];
|
||||
public int[] MagicByteOffsets { get { return mvarMagicByteOffsets; } set { mvarMagicByteOffsets = value; } }
|
||||
|
||||
public string ContentType { get; set; } = null;
|
||||
}
|
||||
public class DataFormatCapabilityCollection
|
||||
{
|
||||
|
||||
@ -817,11 +817,11 @@ namespace UniversalEditor.DataFormats.UEPackage
|
||||
{
|
||||
if (attTypeName != null)
|
||||
{
|
||||
Console.WriteLine("DataFormat could not be associated: " + attTypeName.Value);
|
||||
// Console.WriteLine("DataFormat could not be associated: " + attTypeName.Value);
|
||||
}
|
||||
else if (attID != null)
|
||||
{
|
||||
Console.WriteLine("DataFormat could not be associated: " + attID.Value);
|
||||
// Console.WriteLine("DataFormat could not be associated: " + attID.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -842,6 +842,11 @@ namespace UniversalEditor.DataFormats.UEPackage
|
||||
{
|
||||
filter.Title = attTitle.Value;
|
||||
}
|
||||
MarkupAttribute attContentType = tagFilter.Attributes["ContentType"];
|
||||
if (attContentType != null)
|
||||
{
|
||||
filter.ContentType = attContentType.Value;
|
||||
}
|
||||
|
||||
MarkupAttribute attHintComparison = tagFilter.Attributes["HintComparison"];
|
||||
if (attHintComparison != null)
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<Associations>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="CRI Middleware UTF database">
|
||||
<Filter Title="CRI Middleware UTF database" ContentType="application/x-cri-utf">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.utf</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<Associations>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="CRI Middleware AFS/AWB/ACB archive">
|
||||
<Filter Title="CRI Middleware AFS/AWB/ACB archive" ContentType="application/x-cri-afs">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.afs</FileNameFilter>
|
||||
<FileNameFilter>*.awb</FileNameFilter>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<Associations>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="CRI Middleware CPK archive">
|
||||
<Filter Title="CRI Middleware CPK archive" ContentType="application/x-cri-cpk">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.cpk</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<Associations>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="Heroes of Might and Magic II AGG archive">
|
||||
<Filter Title="Heroes of Might and Magic II AGG archive" ContentType="application/x-newworldcomputing-agg">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.agg</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
@ -18,7 +18,7 @@
|
||||
</Association>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="Heroes of Might and Magic III VID archive">
|
||||
<Filter Title="Heroes of Might and Magic III VID archive" ContentType="application/x-newworldcomputing-vid">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.vid</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
@ -33,7 +33,7 @@
|
||||
</Association>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="Heroes of Might and Magic III SND archive">
|
||||
<Filter Title="Heroes of Might and Magic III SND archive" ContentType="application/x-newworldcomputing-snd">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.snd</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
@ -48,7 +48,7 @@
|
||||
</Association>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="Heroes of Might and Magic III LOD archive">
|
||||
<Filter Title="Heroes of Might and Magic III LOD archive" ContentType="application/x-newworldcomputing-lod">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.lod</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
@ -68,7 +68,7 @@
|
||||
</Association>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="Might and Magic CC archive">
|
||||
<Filter Title="Might and Magic CC archive" ContentType="application/x-newworldcomputing-cc">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.cc</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<Associations>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="Heroes of Might and Magic BMP sprite">
|
||||
<Filter Title="Heroes of Might and Magic BMP sprite" ContentType="image/x-newworldcomputing-bmp">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.bmp</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
@ -18,7 +18,7 @@
|
||||
</Association>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="Heroes of Might and Magic ICN picture">
|
||||
<Filter Title="Heroes of Might and Magic ICN picture" ContentType="image/x-newworldcomputing-icn">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.icn</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
@ -34,7 +34,7 @@
|
||||
</Association>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="Heroes of Might and Magic TIL sprite">
|
||||
<Filter Title="Heroes of Might and Magic TIL sprite" ContentType="image/x-newworldcomputing-til">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.til</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
@ -49,7 +49,7 @@
|
||||
</Association>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="Heroes of Might and Magic PCX image">
|
||||
<Filter Title="Heroes of Might and Magic PCX image" ContentType="image/x-newworldcomputing-pcx">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.pcx</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<Associations>
|
||||
<Association>
|
||||
<Filters>
|
||||
<Filter Title="Sega FARC archive">
|
||||
<Filter Title="Sega FARC archive" ContentType="application/x-sega-farc">
|
||||
<FileNameFilters>
|
||||
<FileNameFilter>*.farc</FileNameFilter>
|
||||
</FileNameFilters>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user