TransmitMii 1.2

git-svn-id: svn://localhost/Users/andi/Downloads/code/branches/TransmitMii@20 eddbe33b-e435-4246-ac25-f5eb65f9a13c
This commit is contained in:
leathl 2010-01-09 17:32:53 +00:00
parent 9478812c23
commit 27cf8d8b12
5 changed files with 19 additions and 11 deletions

View File

@ -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")]

View File

@ -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

View File

@ -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)
{

View File

@ -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();

View File

@ -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)
{