Skip to content

Commit

Permalink
Add an option to "Recompress ARM9 binary", improve arm9 blz
Browse files Browse the repository at this point in the history
Revert #5b6afa1
Update changelog, compile batch and translations
[WIP] Basic command line support
  • Loading branch information
R-YaTian committed Feb 6, 2024
1 parent 7ac89ea commit a39ebed
Show file tree
Hide file tree
Showing 14 changed files with 727 additions and 611 deletions.
2 changes: 1 addition & 1 deletion Plugins/SDAT/SDAT/SWAR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static void Write(sSWAV[] sounds, string fileout)
for (int i = 0; i < sounds.Length; i++)
{
bw.Write(currOffset);
currOffset += (uint)sounds[i].data.data.Length + 0x0C;
currOffset += (uint)sounds[i].data.data.Length + 0x0A;
}

// Write data
Expand Down
40 changes: 34 additions & 6 deletions Tinke/Dialog/SaveOptions.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions Tinke/Dialog/SaveOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ private void ReadLanguage()
btn_Cancel.Text = xml.Element("S1C").Value;
checkBox1.Text = xml.Element("S1E").Value;
checkBox2.Text = xml.Element("S1F").Value;
checkBox3.Text = xml.Element("S20").Value;
checkBox4.Text = xml.Element("S21").Value;
}
catch { throw new NotImplementedException("There was an error reading the language file"); }
}
Expand All @@ -36,6 +38,16 @@ public bool IsSafeTrim
get { return checkBox2.Checked; }
}

public bool IsReCompress
{
get { return checkBox3.Checked; }
}

public bool IsBetterCompress
{
get { return checkBox4.Checked; }
}

private void btn_OK_Click(object sender, EventArgs e)
{
this.Close();
Expand All @@ -45,5 +57,17 @@ private void btn_Cancel_Click(object sender, EventArgs e)
{
this.Close();
}

private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
if (checkBox3.Checked)
{
checkBox4.Enabled = true;
} else
{
checkBox4.Checked = false;
checkBox4.Enabled= false;
}
}
}
}
Loading

0 comments on commit a39ebed

Please sign in to comment.