Skip to content

Commit

Permalink
Make mods write empty containers again for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Jan 16, 2025
1 parent 1462891 commit bdc2da9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Penumbra.GameData
19 changes: 10 additions & 9 deletions Penumbra/Mods/SubMods/SubMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ public static void LoadOptionData(JToken json, IModOption option)
[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)
Expand All @@ -95,10 +96,10 @@ public static void WriteModContainer(JsonWriter j, JsonSerializer serializer, IM
}

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)
Expand All @@ -108,13 +109,13 @@ public static void WriteModContainer(JsonWriter j, JsonSerializer serializer, IM
}

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>
Expand Down

0 comments on commit bdc2da9

Please sign in to comment.