Added scam warning

Version ticked a little early
This commit is contained in:
Lucas Nicodemus 2012-05-27 12:31:39 -06:00
parent a9a9ccef47
commit 917c65d6b8
2 changed files with 10 additions and 5 deletions

View file

@ -48,5 +48,5 @@ using System.Runtime.InteropServices;
// Build Number // Build Number
// MMdd of the build // MMdd of the build
[assembly: AssemblyVersion("3.9.0.0526")] [assembly: AssemblyVersion("3.9.1.0526")]
[assembly: AssemblyFileVersion("3.9.0.0526")] [assembly: AssemblyFileVersion("3.9.1.0526")]

View file

@ -44,7 +44,7 @@ namespace TShockAPI
private static string LogFormat = LogFormatDefault; private static string LogFormat = LogFormatDefault;
private static bool LogClear = false; private static bool LogClear = false;
public static readonly Version VersionNum = Assembly.GetExecutingAssembly().GetName().Version; public static readonly Version VersionNum = Assembly.GetExecutingAssembly().GetName().Version;
public static readonly string VersionCodename = "Zack time: 1 week = 3 months"; public static readonly string VersionCodename = "4.x & 50th download milestone";
public static string SavePath = "tshock"; public static string SavePath = "tshock";
@ -131,7 +131,11 @@ namespace TShockAPI
#endif #endif
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
if (Version.Major >= 4)
{
getTShockAscii(); getTShockAscii();
}
try try
{ {
@ -200,7 +204,7 @@ namespace TShockAPI
if (Config.EnableGeoIP && File.Exists(geoippath)) if (Config.EnableGeoIP && File.Exists(geoippath))
Geo = new GeoIPCountry(geoippath); Geo = new GeoIPCountry(geoippath);
Log.ConsoleInfo(string.Format("TerrariaShock Version {0} ({1}) now running.", Version, VersionCodename)); Log.ConsoleInfo(string.Format("|> Version {0} ({1}) now running.", Version, VersionCodename));
GameHooks.PostInitialize += OnPostInit; GameHooks.PostInitialize += OnPostInit;
GameHooks.Update += OnUpdate; GameHooks.Update += OnUpdate;
@ -259,6 +263,7 @@ namespace TShockAPI
" \\__\\/ /__/:/ \\ \\:\\ \\ \\::/ \\ \\::/ \\ \\:\\ \n" + " \\__\\/ /__/:/ \\ \\:\\ \\ \\::/ \\ \\::/ \\ \\:\\ \n" +
" \\__\\/ \\__\\/ \\__\\/ \\__\\/ \\__\\/ \n" + " \\__\\/ \\__\\/ \\__\\/ \\__\\/ \\__\\/ \n" +
""); "");
Console.WriteLine("TShock for Terraria is open & free software. If you paid, you were scammed.");
// ReSharper restore LocalizableElement // ReSharper restore LocalizableElement
} }