TransmitMii 1.3
git-svn-id: svn://localhost/Users/andi/Downloads/code/branches/TransmitMii@35 eddbe33b-e435-4246-ac25-f5eb65f9a13c
This commit is contained in:
parent
27cf8d8b12
commit
084889ed4f
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
# Visual C# Express 2008
|
# Visual Studio 2010
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransmitMii", "TransmitMii\TransmitMii.csproj", "{70517550-06FA-4743-B5D7-2CB7C153E35E}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransmitMii", "TransmitMii\TransmitMii.csproj", "{70517550-06FA-4743-B5D7-2CB7C153E35E}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
|
BIN
TransmitMii.suo
BIN
TransmitMii.suo
Binary file not shown.
@ -49,5 +49,5 @@ using System.Runtime.InteropServices;
|
|||||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||||
// übernehmen, indem Sie "*" eingeben:
|
// übernehmen, indem Sie "*" eingeben:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.0.0")]
|
[assembly: AssemblyVersion("1.3.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.2.0.0")]
|
[assembly: AssemblyFileVersion("1.3.0.0")]
|
||||||
|
45
TransmitMii/Properties/Resources.Designer.cs
generated
45
TransmitMii/Properties/Resources.Designer.cs
generated
@ -1,27 +1,10 @@
|
|||||||
/* This file is part of TransmitMii
|
//------------------------------------------------------------------------------
|
||||||
* Copyright (C) 2009 Leathl
|
|
||||||
*
|
|
||||||
* TransmitMii is free software: you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU General Public License as published
|
|
||||||
* by the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* TransmitMii is distributed in the hope that it will be
|
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
|
||||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
// This code was generated by a tool.
|
||||||
// Laufzeitversion:2.0.50727.4927
|
// Runtime Version:4.0.30128.1
|
||||||
//
|
//
|
||||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// der Code erneut generiert wird.
|
// the code is regenerated.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -30,13 +13,13 @@ namespace TransmitMii.Properties {
|
|||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
|
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||||
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
// class via a tool like ResGen or Visual Studio.
|
||||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
// with the /str option, or rebuild your VS project.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class Resources {
|
internal class Resources {
|
||||||
@ -50,7 +33,7 @@ namespace TransmitMii.Properties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
/// Returns the cached ResourceManager instance used by this class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||||
@ -64,8 +47,8 @@ namespace TransmitMii.Properties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
/// Overrides the current thread's CurrentUICulture property for all
|
||||||
/// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
/// resource lookups using this strongly typed resource class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
internal static global::System.Globalization.CultureInfo Culture {
|
internal static global::System.Globalization.CultureInfo Culture {
|
||||||
|
10
TransmitMii/Properties/Settings.Designer.cs
generated
10
TransmitMii/Properties/Settings.Designer.cs
generated
@ -1,10 +1,10 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
// This code was generated by a tool.
|
||||||
// Laufzeitversion:2.0.50727.4927
|
// Runtime Version:4.0.30128.1
|
||||||
//
|
//
|
||||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// der Code erneut generiert wird.
|
// the code is regenerated.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ namespace TransmitMii.Properties {
|
|||||||
|
|
||||||
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
@ -9,6 +9,9 @@ TransmitMii is hosted on the CustomizeMii project page: http://customizemii.goog
|
|||||||
-----------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------
|
||||||
Changelog:
|
Changelog:
|
||||||
|
|
||||||
|
Version 1.3
|
||||||
|
- Fixed sending zip files
|
||||||
|
|
||||||
Version 1.2
|
Version 1.2
|
||||||
- Improvement in startup speed (thanks shadow1643)
|
- Improvement in startup speed (thanks shadow1643)
|
||||||
- Added ability to send ZIPs (to HBC)
|
- Added ability to send ZIPs (to HBC)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
@ -12,8 +12,6 @@
|
|||||||
<AssemblyName>TransmitMii</AssemblyName>
|
<AssemblyName>TransmitMii</AssemblyName>
|
||||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<TargetFrameworkSubset>
|
|
||||||
</TargetFrameworkSubset>
|
|
||||||
<ApplicationIcon>Resources\TransmitMii Icon.ico</ApplicationIcon>
|
<ApplicationIcon>Resources\TransmitMii Icon.ico</ApplicationIcon>
|
||||||
<PublishUrl>publish\</PublishUrl>
|
<PublishUrl>publish\</PublishUrl>
|
||||||
<Install>true</Install>
|
<Install>true</Install>
|
||||||
@ -30,6 +28,10 @@
|
|||||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
<FileUpgradeFlags>
|
||||||
|
</FileUpgradeFlags>
|
||||||
|
<OldToolsVersion>3.5</OldToolsVersion>
|
||||||
|
<UpgradeBackupLocation />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
@ -41,6 +43,7 @@
|
|||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<DocumentationFile>
|
<DocumentationFile>
|
||||||
</DocumentationFile>
|
</DocumentationFile>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
@ -51,6 +54,7 @@
|
|||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<DocumentationFile>
|
<DocumentationFile>
|
||||||
</DocumentationFile>
|
</DocumentationFile>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
@ -59,6 +63,7 @@
|
|||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||||
<OutputPath>bin\x86\Release\</OutputPath>
|
<OutputPath>bin\x86\Release\</OutputPath>
|
||||||
@ -67,6 +72,7 @@
|
|||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PublishUrlHistory>publish\</PublishUrlHistory>
|
<PublishUrlHistory>publish\</PublishUrlHistory>
|
||||||
<InstallUrlHistory>
|
<InstallUrlHistory>
|
||||||
|
@ -27,7 +27,7 @@ namespace TransmitMii
|
|||||||
{
|
{
|
||||||
public partial class TransmitMii_Main : Form
|
public partial class TransmitMii_Main : Form
|
||||||
{
|
{
|
||||||
const string version = "1.2"; //Hint for myself: Never use a char in the Version (UpdateCheck)!
|
const string version = "1.3"; //Hint for myself: Never use a char in the Version (UpdateCheck)!
|
||||||
private bool IsRunning = false;
|
private bool IsRunning = false;
|
||||||
private string fileName;
|
private string fileName;
|
||||||
private string statusText;
|
private string statusText;
|
||||||
@ -182,7 +182,7 @@ namespace TransmitMii
|
|||||||
|
|
||||||
bwTransmit.CancelAsync();
|
bwTransmit.CancelAsync();
|
||||||
|
|
||||||
try { theStream.Close(); ; }
|
try { theStream.Close(); }
|
||||||
catch { }
|
catch { }
|
||||||
try { theClient.Close(); }
|
try { theClient.Close(); }
|
||||||
catch { }
|
catch { }
|
||||||
|
@ -65,8 +65,9 @@ namespace TransmitMii
|
|||||||
theClient = new TcpClient();
|
theClient = new TcpClient();
|
||||||
|
|
||||||
byte[] compFileData;
|
byte[] compFileData;
|
||||||
int Blocksize = 4 * 1024;
|
//int Blocksize = 4 * 1024;
|
||||||
if (protocol != Protocol.JODI) Blocksize = 16 * 1024;
|
int Blocksize = 64 * 1024; //Had problems with smaller values and bigger files...
|
||||||
|
if (protocol == Protocol.HAXX) Blocksize = 16 * 1024;
|
||||||
byte[] buffer = new byte[4];
|
byte[] buffer = new byte[4];
|
||||||
string theIP = tbIP.Text;
|
string theIP = tbIP.Text;
|
||||||
|
|
||||||
@ -85,7 +86,7 @@ namespace TransmitMii
|
|||||||
|
|
||||||
StatusUpdate("Magic Sent... Sending Version Info...");
|
StatusUpdate("Magic Sent... Sending Version Info...");
|
||||||
buffer[0] = 0;
|
buffer[0] = 0;
|
||||||
buffer[1] = protocol == Protocol.JODI ? (byte)5 : (byte)4;
|
buffer[1] = protocol != Protocol.HAXX ? (byte)5 : (byte)4;
|
||||||
buffer[2] = (byte)(((fileName.Length + 2) >> 8) & 0xff);
|
buffer[2] = (byte)(((fileName.Length + 2) >> 8) & 0xff);
|
||||||
buffer[3] = (byte)((fileName.Length + 2) & 0xff);
|
buffer[3] = (byte)((fileName.Length + 2) & 0xff);
|
||||||
|
|
||||||
@ -95,11 +96,11 @@ namespace TransmitMii
|
|||||||
if (compress)
|
if (compress)
|
||||||
{
|
{
|
||||||
StatusUpdate("Version Info Sent... Compressing File...");
|
StatusUpdate("Version Info Sent... Compressing File...");
|
||||||
try { compFileData = zlib.Compress(fileData); }
|
try { byte[] temp = zlib.Compress(fileData); compFileData = temp; }
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
//Compression failed, let's continue without compression
|
//Compression failed, let's continue without compression
|
||||||
if (!Aborted) ErrorBox("a");
|
compress = false;
|
||||||
compFileData = fileData;
|
compFileData = fileData;
|
||||||
fileData = new byte[0];
|
fileData = new byte[0];
|
||||||
}
|
}
|
||||||
@ -122,7 +123,7 @@ namespace TransmitMii
|
|||||||
try { theStream.Write(buffer, 0, 4); }
|
try { theStream.Write(buffer, 0, 4); }
|
||||||
catch (Exception ex) { if (!Aborted) ErrorBox("Error sending Filesize:\n" + ex.Message); theStream.Close(); theClient.Close(); return false; }
|
catch (Exception ex) { if (!Aborted) ErrorBox("Error sending Filesize:\n" + ex.Message); theStream.Close(); theClient.Close(); return false; }
|
||||||
|
|
||||||
if (compress)
|
if (protocol != Protocol.HAXX)
|
||||||
{
|
{
|
||||||
buffer[0] = (byte)((fileData.Length >> 24) & 0xff);
|
buffer[0] = (byte)((fileData.Length >> 24) & 0xff);
|
||||||
buffer[1] = (byte)((fileData.Length >> 16) & 0xff);
|
buffer[1] = (byte)((fileData.Length >> 16) & 0xff);
|
||||||
@ -152,6 +153,8 @@ namespace TransmitMii
|
|||||||
{
|
{
|
||||||
theStream.Write(compFileData, off, compFileData.Length - off);
|
theStream.Write(compFileData, off, compFileData.Length - off);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//theStream.Write(compFileData, 0, compFileData.Length);
|
||||||
}
|
}
|
||||||
catch (Exception ex) { if (!Aborted) ErrorBox("Error sending File:\n" + ex.Message); theStream.Close(); theClient.Close(); return false; }
|
catch (Exception ex) { if (!Aborted) ErrorBox("Error sending File:\n" + ex.Message); theStream.Close(); theClient.Close(); return false; }
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ namespace TransmitMii
|
|||||||
|
|
||||||
err = compress2(outFile, ref outLength, inFile, inFile.Length, 6);
|
err = compress2(outFile, ref outLength, inFile, inFile.Length, 6);
|
||||||
|
|
||||||
if (err == ZLibError.Z_OK && outLength > -1)
|
if (err == ZLibError.Z_OK && (outLength > -1 && outLength < inFile.Length))
|
||||||
{
|
{
|
||||||
Array.Resize(ref outFile, outLength);
|
Array.Resize(ref outFile, outLength);
|
||||||
return outFile;
|
return outFile;
|
||||||
|
Loading…
Reference in New Issue
Block a user