1
0
mirror of synced 2024-11-23 22:00:56 +01:00

data.json is now saved with indentation for easy post-editing

This commit is contained in:
Fluto 2022-08-20 13:46:31 +10:00
parent 684760c0bf
commit 4537f4bef9

View File

@ -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);
}