Skip to content

Commit

Permalink
XMA Studio and batch AT3 and XMA converters
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperbx authored Jun 16, 2019
1 parent 35ca441 commit c6406e7
Show file tree
Hide file tree
Showing 26 changed files with 7,381 additions and 328 deletions.
108 changes: 69 additions & 39 deletions Sonic '06 Toolkit/Forms/About.Designer.cs

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

5 changes: 4 additions & 1 deletion Sonic '06 Toolkit/Forms/About.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,10 @@ CRI Middleware Co. - CRI Atom Encoder
Radfordhound - HedgeLib
in - extract-xiso
SONY Computer Entertainment Inc. - ATRAC3plus Codec TOOL
GerbilSoft - mst06</value>
GerbilSoft - mst06
Microsoft Corporation - XMA Encode 2008
NonamiEight - XMA Research
Reimous - XMA Research</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
Expand Down
20 changes: 20 additions & 0 deletions Sonic '06 Toolkit/Forms/Notifications/Status.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ void Status_Notifier_Load(object sender, EventArgs e)
lbl_unpackState.Text = "Encoding WAV files. Please wait...";
pnl_windowCheck.BackColor = Color.AliceBlue; BackColor = Color.AliceBlue;
Width = 300;
Height = 138;
}
else if (Tools.Global.ddsState == "dds" || Tools.Global.ddsState == "launch-dds")
{
Expand Down Expand Up @@ -152,6 +153,7 @@ void Status_Notifier_Load(object sender, EventArgs e)
lbl_unpackState.Text = "Repacking CSBs. Please wait...";
pnl_windowCheck.BackColor = Color.AliceBlue; BackColor = Color.AliceBlue;
Width = 212;
Height = 138;
}
else if (Tools.Global.lubState == "decompile" || Tools.Global.lubState == "launch-decompile" || Tools.Global.lubState == "decompile-all")
{
Expand Down Expand Up @@ -180,6 +182,24 @@ void Status_Notifier_Load(object sender, EventArgs e)
Width = 219;
Height = 138;
}
else if (Tools.Global.xmaState == "xma" || Tools.Global.xmaState == "launch-xma" || Tools.Global.xmaState == "xma-repatch" || Tools.Global.xmaState == "xma-launch-repatch")
{
NOW_LOADING.Visible = false;
Text = "Encoding XMAs...";
lbl_unpackState.Text = "Encoding XMAs. Please wait...";
pnl_windowCheck.BackColor = Color.FromArgb(239, 224, 201); BackColor = Color.FromArgb(239, 224, 201);
Width = 284;
Height = 138;
}
else if (Tools.Global.xmaState == "wav")
{
NOW_LOADING.Visible = false;
Text = "Encoding WAV files...";
lbl_unpackState.Text = "Encoding WAV files. Please wait...";
pnl_windowCheck.BackColor = Color.FromArgb(239, 224, 201); BackColor = Color.FromArgb(239, 224, 201);
Width = 300;
Height = 138;
}
else if (Tools.Global.exisoState == "extract")
{
NOW_LOADING.Visible = false;
Expand Down
17 changes: 5 additions & 12 deletions Sonic '06 Toolkit/Forms/Studios/AT3 Studio.Designer.cs

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

15 changes: 4 additions & 11 deletions Sonic '06 Toolkit/Forms/Studios/AT3 Studio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ void AT3_Studio_Load(object sender, EventArgs e)
}
else { MessageBox.Show("There are no encodable files in this directory.", "No files available", MessageBoxButtons.OK, MessageBoxIcon.Information); Close(); }

tm_wholeLoopCheck.Start();

if (Properties.Settings.Default.wholeLoop == true) looping_Whole.Checked = true;
if (Properties.Settings.Default.AT3wholeLoop == true) looping_Whole.Checked = true; else looping_Whole.Checked = false;
}

void Btn_SelectAll_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -213,7 +211,7 @@ void Btn_Convert_Click(object sender, EventArgs e)
}
else
{
MessageBox.Show("AT3 State set to invalid value: " + Tools.Global.adxState + "\nLine information: " + new System.Diagnostics.StackTrace(true).GetFrame(1).GetFileLineNumber(), "Developer Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show("AT3 State set to invalid value: " + Tools.Global.at3State + "\nLine information: " + new System.Diagnostics.StackTrace(true).GetFrame(1).GetFileLineNumber(), "Developer Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}

Expand All @@ -222,12 +220,12 @@ void Looping_Whole_CheckedChanged(object sender, EventArgs e)
if (looping_Whole.Checked == true)
{
wholeLoop = "-wholeloop ";
Properties.Settings.Default.wholeLoop = true;
Properties.Settings.Default.AT3wholeLoop = true;
}
else
{
wholeLoop = "";
Properties.Settings.Default.wholeLoop = false;
Properties.Settings.Default.AT3wholeLoop = false;
}
Properties.Settings.Default.Save();
}
Expand All @@ -238,11 +236,6 @@ void Looping_Whole_CheckedChanged(object sender, EventArgs e)
// new Loop().ShowDialog();
//}

void Tm_wholeLoopCheck_Tick(object sender, EventArgs e)
{
if (wholeLoop != "") looping_Whole.Checked = true; else looping_Whole.Checked = false;
}

void AT3_Studio_FormClosing(object sender, FormClosingEventArgs e)
{
Tools.Global.at3State = null;
Expand Down
3 changes: 0 additions & 3 deletions Sonic '06 Toolkit/Forms/Studios/AT3 Studio.resx
Original file line number Diff line number Diff line change
Expand Up @@ -4860,9 +4860,6 @@
MTf8Hy49c8egYf2MAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="tm_wholeLoopCheck.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>152, 17</value>
</metadata>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAUAEBAAAAEAIABoBAAAVgAAABgYAAABACAAiAkAAL4EAAAgIAAAAQAgAKgQAABGDgAAMDAAAAEA
Expand Down
Loading

0 comments on commit c6406e7

Please sign in to comment.