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

minor rename

This commit is contained in:
Fluto 2022-02-07 21:51:17 +11:00
parent e95b7c6aa6
commit 46907de4c9
2 changed files with 5 additions and 5 deletions

View File

@ -308,7 +308,7 @@ public class MusicPatch
File.WriteAllBytes(filePath, compressedMemoryStream.ToArray()); File.WriteAllBytes(filePath, compressedMemoryStream.ToArray());
} }
song.AreFilesGZipped = true; song.areFilesGZipped = true;
File.WriteAllText(dataPath, JsonConvert.SerializeObject(song)); File.WriteAllText(dataPath, JsonConvert.SerializeObject(song));
SubmitDirectory(directory, true); SubmitDirectory(directory, true);
@ -1424,7 +1424,7 @@ public class MusicPatch
type.GetField("fumenPath").SetValue(__instance, newPath); type.GetField("fumenPath").SetValue(__instance, newPath);
byte[] array = File.ReadAllBytes(newPath); byte[] array = File.ReadAllBytes(newPath);
if (songInstance.AreFilesGZipped) if (songInstance.areFilesGZipped)
{ {
using var memoryStream = new MemoryStream(array); using var memoryStream = new MemoryStream(array);
using var destination = new MemoryStream(); using var destination = new MemoryStream();
@ -1585,7 +1585,7 @@ public class MusicPatch
var newPath = Path.Combine(songInstance.FolderPath, $"{sheetName.Replace(songName, songInstance.SongName)}.bin"); var newPath = Path.Combine(songInstance.FolderPath, $"{sheetName.Replace(songName, songInstance.SongName)}.bin");
var bytes = File.ReadAllBytes(newPath); var bytes = File.ReadAllBytes(newPath);
if (songInstance.AreFilesGZipped) if (songInstance.areFilesGZipped)
{ {
using var memoryStream = new MemoryStream(bytes); using var memoryStream = new MemoryStream(bytes);
using var destination = new MemoryStream(); using var destination = new MemoryStream();
@ -1658,7 +1658,7 @@ public class MusicPatch
} }
var bytes = File.ReadAllBytes(newPath); var bytes = File.ReadAllBytes(newPath);
if (songInstance.AreFilesGZipped) if (songInstance.areFilesGZipped)
{ {
using var memoryStream = new MemoryStream(bytes); using var memoryStream = new MemoryStream(bytes);
using var destination = new MemoryStream(); using var destination = new MemoryStream();

View File

@ -45,7 +45,7 @@ namespace TakoTako.Common
[DataMember] public int previewPos; [DataMember] public int previewPos;
[DataMember] public int fumenOffsetPos; [DataMember] public int fumenOffsetPos;
[DataMember] public bool AreFilesGZipped; [DataMember] public bool areFilesGZipped;
// LocalisationDetails // LocalisationDetails
/// <summary> /// <summary>