mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-06 16:04:38 +01:00
Optimize mod containers.
This commit is contained in:
parent
d7c48ae776
commit
ad13c3bb47
2 changed files with 10 additions and 11 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit bab75501cd499de7d1c28883fe87dde98c772a3c
|
||||
Subproject commit 41c8a88409a46743c08ee3dd53949a9f7e19602b
|
||||
|
|
@ -81,9 +81,8 @@ public static class SubMod
|
|||
[MethodImpl(MethodImplOptions.AggressiveOptimization | MethodImplOptions.AggressiveInlining)]
|
||||
public static void WriteModContainer(JsonWriter j, JsonSerializer serializer, IModDataContainer data, DirectoryInfo basePath)
|
||||
{
|
||||
// #TODO: remove comments when TexTools updated.
|
||||
//if (data.Files.Count > 0)
|
||||
//{
|
||||
if (data.Files.Count > 0)
|
||||
{
|
||||
j.WritePropertyName(nameof(data.Files));
|
||||
j.WriteStartObject();
|
||||
foreach (var (gamePath, file) in data.Files)
|
||||
|
|
@ -96,10 +95,10 @@ public static class SubMod
|
|||
}
|
||||
|
||||
j.WriteEndObject();
|
||||
//}
|
||||
}
|
||||
|
||||
//if (data.FileSwaps.Count > 0)
|
||||
//{
|
||||
if (data.FileSwaps.Count > 0)
|
||||
{
|
||||
j.WritePropertyName(nameof(data.FileSwaps));
|
||||
j.WriteStartObject();
|
||||
foreach (var (gamePath, file) in data.FileSwaps)
|
||||
|
|
@ -109,13 +108,13 @@ public static class SubMod
|
|||
}
|
||||
|
||||
j.WriteEndObject();
|
||||
//}
|
||||
}
|
||||
|
||||
//if (data.Manipulations.Count > 0)
|
||||
//{
|
||||
if (data.Manipulations.Count > 0)
|
||||
{
|
||||
j.WritePropertyName(nameof(data.Manipulations));
|
||||
serializer.Serialize(j, data.Manipulations);
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary> Write the data for a selectable mod option on a JsonWriter. </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue