From 4537f4bef9e4c259305092ed9f7e329a1f12f0fb Mon Sep 17 00:00:00 2001 From: Fluto Date: Sat, 20 Aug 2022 13:46:31 +1000 Subject: [PATCH] data.json is now saved with indentation for easy post-editing --- TakoTako/Patches/CustomMusicLoaderPatch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TakoTako/Patches/CustomMusicLoaderPatch.cs b/TakoTako/Patches/CustomMusicLoaderPatch.cs index 28e8ae7..5d1f6d1 100644 --- a/TakoTako/Patches/CustomMusicLoaderPatch.cs +++ b/TakoTako/Patches/CustomMusicLoaderPatch.cs @@ -264,7 +264,7 @@ public class CustomMusicLoaderPatch } } - File.WriteAllText(Path.Combine(musicDirectory, "conversion.json"), JsonConvert.SerializeObject(conversionStatus), Encoding.Unicode); + File.WriteAllText(Path.Combine(musicDirectory, "conversion.json"), JsonConvert.SerializeObject(conversionStatus, Formatting.Indented), Encoding.Unicode); } catch (Exception e) { @@ -306,7 +306,7 @@ public class CustomMusicLoaderPatch } song.areFilesGZipped = true; - File.WriteAllText(dataPath, JsonConvert.SerializeObject(song)); + File.WriteAllText(dataPath, JsonConvert.SerializeObject(song, Formatting.Indented)); SubmitDirectory(directory, true); }