diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..79601ea --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +bin/ +obj/ +*.user \ No newline at end of file diff --git a/Json.cs b/Json.cs index f9afe50..c2abda5 100644 --- a/Json.cs +++ b/Json.cs @@ -1,4 +1,6 @@ -using System.Text.Json; +using System.Text.Encodings.Web; +using System.Text.Json; +using System.Text.Unicode; namespace TaikoSoundEditor { @@ -11,7 +13,11 @@ namespace TaikoSoundEditor public static string Serialize(T item) { - return JsonSerializer.Serialize(item, new JsonSerializerOptions { WriteIndented = true }); + return JsonSerializer.Serialize(item, new JsonSerializerOptions + { + Encoder = JavaScriptEncoder.Create(UnicodeRanges.All), + WriteIndented = true + }); } } diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs index ab5143d..e99ed9b 100644 --- a/MainForm.Designer.cs +++ b/MainForm.Designer.cs @@ -644,6 +644,8 @@ // // FeedbackBox // + this.FeedbackBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.FeedbackBox.Location = new System.Drawing.Point(6, 134); this.FeedbackBox.Multiline = true; this.FeedbackBox.Name = "FeedbackBox"; @@ -652,6 +654,7 @@ // // CreateBackButton // + this.CreateBackButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.CreateBackButton.Location = new System.Drawing.Point(205, 102); this.CreateBackButton.Name = "CreateBackButton"; this.CreateBackButton.Size = new System.Drawing.Size(75, 23); @@ -662,6 +665,7 @@ // // CreateOkButton // + this.CreateOkButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.CreateOkButton.Location = new System.Drawing.Point(286, 102); this.CreateOkButton.Name = "CreateOkButton"; this.CreateOkButton.Size = new System.Drawing.Size(75, 23); diff --git a/NUS3Bank.cs b/NUS3Bank.cs index fb619f8..238a413 100644 --- a/NUS3Bank.cs +++ b/NUS3Bank.cs @@ -22,6 +22,9 @@ namespace TaikoSoundEditor using var ms = new MemoryStream(); var header = Resources.song_ABCDEF_nus3bank.ToArray(); + + + Write32(header, 0x4, (uint)idsp.Length); for(int i=0;i<6;i++) { header[0xAA + i] = (byte)songId[i]; diff --git a/Properties/PublishProfiles/FolderProfile.pubxml.user b/Properties/PublishProfiles/FolderProfile.pubxml.user index ad41c3a..9edfe89 100644 --- a/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - True|2023-07-17T08:15:26.2194507Z; + True|2023-07-17T08:28:41.9554245Z;True|2023-07-17T11:15:26.2194507+03:00; \ No newline at end of file