mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Make mods write empty containers again for now.
This commit is contained in:
parent
1462891bd3
commit
bdc2da95c4
2 changed files with 11 additions and 10 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit d5f929664c212804594fadb4e4cefe9e6a1f5d37
|
||||
Subproject commit 78ce195c171d7bce4ad9df105f1f95cce9bf1150
|
||||
|
|
@ -81,8 +81,9 @@ public static class SubMod
|
|||
[MethodImpl(MethodImplOptions.AggressiveOptimization | MethodImplOptions.AggressiveInlining)]
|
||||
public static void WriteModContainer(JsonWriter j, JsonSerializer serializer, IModDataContainer data, DirectoryInfo basePath)
|
||||
{
|
||||
if (data.Files.Count > 0)
|
||||
{
|
||||
// #TODO: remove comments when TexTools updated.
|
||||
//if (data.Files.Count > 0)
|
||||
//{
|
||||
j.WritePropertyName(nameof(data.Files));
|
||||
j.WriteStartObject();
|
||||
foreach (var (gamePath, file) in data.Files)
|
||||
|
|
@ -95,10 +96,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)
|
||||
|
|
@ -108,13 +109,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