From c9cd8cb9712aab82eb8d2947f47fe15594fcdd2a Mon Sep 17 00:00:00 2001 From: high Date: Sun, 26 Jun 2011 00:32:19 -0400 Subject: [PATCH] Deleted the update project (not used) --- Terraria.sln | 12 --- Update/Program.cs | 83 -------------------- Update/Properties/AssemblyInfo.cs | 36 --------- Update/Resources.Designer.cs | 70 ----------------- Update/Resources.resx | 124 ------------------------------ Update/Update.csproj | 74 ------------------ 6 files changed, 399 deletions(-) delete mode 100644 Update/Program.cs delete mode 100644 Update/Properties/AssemblyInfo.cs delete mode 100644 Update/Resources.Designer.cs delete mode 100644 Update/Resources.resx delete mode 100644 Update/Update.csproj diff --git a/Terraria.sln b/Terraria.sln index 9efdbb5b..3c46c488 100644 --- a/Terraria.sln +++ b/Terraria.sln @@ -3,8 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TShockAPI", "TShockAPI\TShockAPI.csproj", "{49606449-072B-4CF5-8088-AA49DA586694}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Update", "Update\Update.csproj", "{AF322FAB-9A32-43AA-A01A-76B2A039F711}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -25,16 +23,6 @@ Global {49606449-072B-4CF5-8088-AA49DA586694}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {49606449-072B-4CF5-8088-AA49DA586694}.Release|Mixed Platforms.Build.0 = Release|Any CPU {49606449-072B-4CF5-8088-AA49DA586694}.Release|x86.ActiveCfg = Release|Any CPU - {AF322FAB-9A32-43AA-A01A-76B2A039F711}.Debug|Any CPU.ActiveCfg = Debug|x86 - {AF322FAB-9A32-43AA-A01A-76B2A039F711}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {AF322FAB-9A32-43AA-A01A-76B2A039F711}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {AF322FAB-9A32-43AA-A01A-76B2A039F711}.Debug|x86.ActiveCfg = Debug|x86 - {AF322FAB-9A32-43AA-A01A-76B2A039F711}.Debug|x86.Build.0 = Debug|x86 - {AF322FAB-9A32-43AA-A01A-76B2A039F711}.Release|Any CPU.ActiveCfg = Release|x86 - {AF322FAB-9A32-43AA-A01A-76B2A039F711}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {AF322FAB-9A32-43AA-A01A-76B2A039F711}.Release|Mixed Platforms.Build.0 = Release|x86 - {AF322FAB-9A32-43AA-A01A-76B2A039F711}.Release|x86.ActiveCfg = Release|x86 - {AF322FAB-9A32-43AA-A01A-76B2A039F711}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Update/Program.cs b/Update/Program.cs deleted file mode 100644 index 65647a35..00000000 --- a/Update/Program.cs +++ /dev/null @@ -1,83 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Diagnostics; -using System.IO; - -namespace Update -{ - class Program - { - static void Main(string[] args) - { - string data; - string procname = "cmd.exe"; - string procargs = "/c echo finalizing update&&ping 127.0.0.1 -n 2&&del UpdateTShock.exe"; - try - { - StreamReader sr = new StreamReader("pn"); - procname = sr.ReadToEnd(); - sr.Close(); - string[] datat = procname.Split(' '); - procname = datat[0]; - procargs = ""; - for (int i = 0; i < datat.Count(); i++) - { - procargs += datat[i] + " "; - } - - File.Delete("pn"); - - sr.Dispose(); - - sr = new StreamReader("pid"); - data = sr.ReadToEnd(); - sr.Close(); - - File.Delete("pid"); - } - catch (FileNotFoundException) - { - data = ""; - } - - try - { - Process TServer = Process.GetProcessById(Convert.ToInt32(data)); - while (!TServer.HasExited) - { - } - } - catch (Exception) - { - } - - try - { - DirectoryInfo di = new DirectoryInfo("serverplugins"); - FileInfo[] fi = di.GetFiles(); - for (int i = 0; i < fi.Length; i ++ ) - { - if (fi[i].Name.ToLowerInvariant().Contains("tshockapi")) - { - fi[i].Delete(); - } - } - if (System.IO.File.Exists("serverplugins/TShockAPI.dll")) - { - System.IO.File.Delete("serverplugins/TShockAPI.dll"); - } - } - catch (FileNotFoundException) - { - } - - BinaryWriter bw = new BinaryWriter(new FileStream("serverplugins/TShockAPI.dll", FileMode.Create)); - bw.Write(Resources.TShockAPI); - bw.Close(); - - Process.Start(new ProcessStartInfo(procname, procargs)); - } - } -} diff --git a/Update/Properties/AssemblyInfo.cs b/Update/Properties/AssemblyInfo.cs deleted file mode 100644 index c8f98b3a..00000000 --- a/Update/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Update")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("Update")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("c809c4c8-97b2-46f1-bbc0-b4a3ae955ac1")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Update/Resources.Designer.cs b/Update/Resources.Designer.cs deleted file mode 100644 index 35d6a914..00000000 --- a/Update/Resources.Designer.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.225 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Update { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Update.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - internal static byte[] TShockAPI { - get { - object obj = ResourceManager.GetObject("TShockAPI", resourceCulture); - return ((byte[])(obj)); - } - } - } -} diff --git a/Update/Resources.resx b/Update/Resources.resx deleted file mode 100644 index fd37f4ea..00000000 --- a/Update/Resources.resx +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - ..\TShockAPI\bin\Release\TShockAPI.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Update/Update.csproj b/Update/Update.csproj deleted file mode 100644 index f37c3dee..00000000 --- a/Update/Update.csproj +++ /dev/null @@ -1,74 +0,0 @@ - - - - Debug - x86 - 8.0.30703 - 2.0 - {AF322FAB-9A32-43AA-A01A-76B2A039F711} - Exe - Properties - Update - UpdateTShock - v4.0 - Client - 512 - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - True - True - Resources.resx - - - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - - - - - - - \ No newline at end of file