From a4f73b4ea2a5088cd38eaa9d9020daae829b1ad6 Mon Sep 17 00:00:00 2001 From: "mzolob@gmail.com" Date: Sun, 13 Nov 2011 00:28:35 +0000 Subject: [PATCH] Updated to 1.7.1 - Fixed a bug that prevented Sharpii from checking for SharpiiIP in the system variables --- Sharpii/HBC.cs | 18 +++++++++--------- Sharpii/IOS.cs | 2 +- Sharpii/Program.cs | 2 +- Sharpii/README.txt | 5 ++++- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Sharpii/HBC.cs b/Sharpii/HBC.cs index d10316a..1f02aca 100644 --- a/Sharpii/HBC.cs +++ b/Sharpii/HBC.cs @@ -104,16 +104,16 @@ namespace Sharpii Environment.SetEnvironmentVariable("SharpiiIP", ip, EnvironmentVariableTarget.Machine); } - if (ip == "") + if (String.IsNullOrEmpty(ip)) ip = Environment.GetEnvironmentVariable("SharpiiIP", EnvironmentVariableTarget.User); - if (ip == "") + if (String.IsNullOrEmpty(ip)) ip = Environment.GetEnvironmentVariable("SharpiiIP", EnvironmentVariableTarget.Machine); - if (ip == "") + if (String.IsNullOrEmpty(ip)) { Console.WriteLine("ERROR: No IP set"); return; } - if (noip = true && Quiet.quiet > 2) + if (noip == true && Quiet.quiet > 2) Console.WriteLine("No IP set, using {0}", ip); libWiiSharp.Protocol proto = Protocol.JODI; @@ -279,16 +279,16 @@ namespace Sharpii ios = "0"; } - if (ip == "") + if (String.IsNullOrEmpty(ip)) ip = Environment.GetEnvironmentVariable("SharpiiIP", EnvironmentVariableTarget.User); - if (ip == "") + if (String.IsNullOrEmpty(ip)) ip = Environment.GetEnvironmentVariable("SharpiiIP", EnvironmentVariableTarget.Machine); - if (ip == "") + if (String.IsNullOrEmpty(ip)) { Console.WriteLine("ERROR: No IP set"); return; } - if (noip = true && Quiet.quiet > 2) + if (noip == true && Quiet.quiet > 2) Console.WriteLine("No IP set, using {0}", ip); libWiiSharp.Protocol proto = Protocol.JODI; @@ -357,7 +357,7 @@ namespace Sharpii { Console.WriteLine(""); Console.WriteLine("Sharpii {0} - SendWad - A tool by person66, using libWiiSharp.dll by leathl,", Version.version); - Console.WriteLine(" and CRAP's installer by WiiCrazy/I.R.on"); + Console.WriteLine(" and CRAP's installer by WiiCrazy/I.R.on"); Console.WriteLine(""); Console.WriteLine(" Usage:"); Console.WriteLine(""); diff --git a/Sharpii/IOS.cs b/Sharpii/IOS.cs index 8e0abd8..4304352 100644 --- a/Sharpii/IOS.cs +++ b/Sharpii/IOS.cs @@ -238,7 +238,7 @@ namespace Sharpii { Console.WriteLine(""); Console.WriteLine("Sharpii {0} - IOS - A tool by person66, using libWiiSharp.dll by leathl", Version.version); - Console.WriteLine(" Code based off PatchIOS by leathl"); + Console.WriteLine(" Code based off PatchIOS by leathl"); Console.WriteLine(""); Console.WriteLine(" Usage:"); Console.WriteLine(""); diff --git a/Sharpii/Program.cs b/Sharpii/Program.cs index b4918c1..8882977 100644 --- a/Sharpii/Program.cs +++ b/Sharpii/Program.cs @@ -321,5 +321,5 @@ namespace Sharpii } public class Version { - public static string version = "1.7"; + public static string version = "1.7.1"; } \ No newline at end of file diff --git a/Sharpii/README.txt b/Sharpii/README.txt index b29333e..dddb052 100644 --- a/Sharpii/README.txt +++ b/Sharpii/README.txt @@ -1,5 +1,5 @@ /------------------------------------------------------------------------------> - Sharpii 1.7 + Sharpii 1.7.1 <----------------------------------------------------------------> An app by person66 libWiiSharp.dll by leathl (mod by scooby74029) @@ -145,6 +145,9 @@ See "LICENSE.txt" for more information. /----CHANGELOG /------------------------------> +1.7.1 + - Fixed a bug that prevented Sharpii from checking for SharpiiIP + in the system variables 1.7 - Sharpii can now be installed for use without the exe - SharpiiIP is now a system variable, not a user one.