diff --git a/TransmitMii/Properties/AssemblyInfo.cs b/TransmitMii/Properties/AssemblyInfo.cs index 6406767..86c1410 100644 --- a/TransmitMii/Properties/AssemblyInfo.cs +++ b/TransmitMii/Properties/AssemblyInfo.cs @@ -49,5 +49,5 @@ using System.Runtime.InteropServices; // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.5.0")] -[assembly: AssemblyFileVersion("1.1.5.0")] +[assembly: AssemblyVersion("1.2.0.0")] +[assembly: AssemblyFileVersion("1.2.0.0")] diff --git a/TransmitMii/Readme.txt b/TransmitMii/Readme.txt index 51aec10..e307ef3 100644 --- a/TransmitMii/Readme.txt +++ b/TransmitMii/Readme.txt @@ -9,6 +9,15 @@ TransmitMii is hosted on the CustomizeMii project page: http://customizemii.goog ----------------------------------------------------------------------------------------- Changelog: +Version 1.2 + - Improvement in startup speed (thanks shadow1643) + - Added ability to send ZIPs (to HBC) + ZIP files must conatin the *appfolder* containing + boot.dol + meta.xml (optional) + icon.png (optional) + and will be extracted to SD:/apps/*appfolder* + Version 1.15 - Fixed transmitting to HBC -1.0.4 (HAXX) - Fixed transmitting to USB Loader GX diff --git a/TransmitMii/TransmitMii_Main.cs b/TransmitMii/TransmitMii_Main.cs index 4496134..5735700 100644 --- a/TransmitMii/TransmitMii_Main.cs +++ b/TransmitMii/TransmitMii_Main.cs @@ -27,7 +27,7 @@ namespace TransmitMii { public partial class TransmitMii_Main : Form { - const string version = "1.15"; //Hint for myself: Never use a char in the Version (UpdateCheck)! + const string version = "1.2"; //Hint for myself: Never use a char in the Version (UpdateCheck)! private bool IsRunning = false; private string fileName; private string statusText; @@ -61,9 +61,11 @@ namespace TransmitMii { this.Text = this.Text.Replace("X", version); this.Icon = Properties.Resources.TransmitMii_Icon; - UpdateCheck(); ExtensionCheck(); + MethodInvoker Update = new MethodInvoker(UpdateCheck); + Update.BeginInvoke(null, null); + UpdateStatus = new EventHandler(this.StatusUpdate); EnableButtons = new EventHandler(this.ButtonEnable); @@ -163,8 +165,8 @@ namespace TransmitMii private void btnBrowseFile_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); - ofd.Filter = "DOL|*.dol|ELF|*.elf|WAD|*.wad|All|*.dol;*.elf;*.wad"; - ofd.FilterIndex = 4; + ofd.Filter = "DOL|*.dol|ELF|*.elf|WAD|*.wad|ZIP|*.zip|All|*.dol;*.elf;*.wad;*.zip"; + ofd.FilterIndex = 5; if (ofd.ShowDialog() == DialogResult.OK) { diff --git a/TransmitMii/TransmitMii_Transmit.cs b/TransmitMii/TransmitMii_Transmit.cs index 3127cb4..00ea125 100644 --- a/TransmitMii/TransmitMii_Transmit.cs +++ b/TransmitMii/TransmitMii_Transmit.cs @@ -22,10 +22,6 @@ namespace TransmitMii { partial class TransmitMii_Main { - const bool JODI_Compress = true; - const bool HAXX_Compress = false; - const bool USBX_Compress = false; - TcpClient theClient; NetworkStream theStream; System.Diagnostics.Stopwatch stopper = new System.Diagnostics.Stopwatch(); @@ -64,6 +60,7 @@ namespace TransmitMii compress = false; if ((int)(protocol) == 0) compress = false; + if (fileName.ToLower().EndsWith(".zip")) compress = false; //There won't be much to compress in Zips theClient = new TcpClient(); diff --git a/TransmitMii/TransmitMii_zlib.cs b/TransmitMii/TransmitMii_zlib.cs index 33a72a4..4bf2508 100644 --- a/TransmitMii/TransmitMii_zlib.cs +++ b/TransmitMii/TransmitMii_zlib.cs @@ -37,7 +37,7 @@ namespace TransmitMii } [DllImport("zlib1.dll")] - public static extern ZLibError compress2(byte[] dest, ref int destLength, byte[] source, int sourceLength, int level); + private static extern ZLibError compress2(byte[] dest, ref int destLength, byte[] source, int sourceLength, int level); public static byte[] Compress(byte[] inFile) {