commit 298bffd56b9515001b077cc43c8b8f663883a09b Author: Melissa Geels Date: Tue Apr 28 16:29:30 2020 +0200 Initial commit (2011) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..46f9239 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +bin/ +obj/ + +*.suo +*.docstates +*.user diff --git a/GamerService Updater.sln b/GamerService Updater.sln new file mode 100644 index 0000000..0d98020 --- /dev/null +++ b/GamerService Updater.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GamerService Updater", "GamerService Updater\GamerService Updater.csproj", "{77C83B45-FCB0-4F45-9666-523D8C4EC8EC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {77C83B45-FCB0-4F45-9666-523D8C4EC8EC}.Debug|x86.ActiveCfg = Debug|x86 + {77C83B45-FCB0-4F45-9666-523D8C4EC8EC}.Debug|x86.Build.0 = Debug|x86 + {77C83B45-FCB0-4F45-9666-523D8C4EC8EC}.Release|x86.ActiveCfg = Release|x86 + {77C83B45-FCB0-4F45-9666-523D8C4EC8EC}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/GamerService Updater/Config.cs b/GamerService Updater/Config.cs new file mode 100644 index 0000000..a3b673c --- /dev/null +++ b/GamerService Updater/Config.cs @@ -0,0 +1,201 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; + +namespace MrAG +{ + public class Config + { + private static Hashtable Data = new Hashtable(); + private static bool Busy; + + public static void New(){ + Data.Clear(); + } + + public static void Write(string path){ + while (Busy) { }; + Busy = true; + + StreamWriter writer = new StreamWriter(File.OpenWrite(path)); + foreach( DictionaryEntry cat in Data) + { + writer.WriteLine("[\"" + cat.Key + "\"] = {"); + + Hashtable values = (Hashtable)Data[cat.Key]; + foreach( DictionaryEntry entry in values) + { + writer.WriteLine(" [\"" + entry.Key + "\"] = \"" + entry.Value + "\";"); + } + + writer.WriteLine("}"); + writer.WriteLine(""); + } + + Busy = false; + writer.Close(); + } + + public static bool Read(string file){ + while (Busy) { }; + Busy = true; + Data.Clear(); + + string realfile = Directory.GetCurrentDirectory() + "/" + file; + + if (File.Exists(realfile)){ + StreamReader reader = new StreamReader(File.OpenRead(realfile)); + string[] content = reader.ReadToEnd().Replace("\r", "").Split('\n'); + reader.Close(); + + int entrys = 0; + string CurrentSection = ""; + string CurrentName = ""; + foreach(string line in content){ + if (line.Length > 0){ + if (line.Replace(" ","").Replace(" ", "").StartsWith("#")){ // comment + }else if (line.StartsWith("[\"")){ // section + CurrentSection = line.Substring(2, line.Length - 8); + Data[CurrentSection] = new Hashtable(); + }else if (line == "}"){ // end-section + CurrentSection = ""; + }else if (line.StartsWith(" [\"") || line.StartsWith(" [\"")){ // name/value + int splitpos = line.IndexOf("\"] = \""); + if (line.EndsWith("\";")){ + entrys++; + (Data[CurrentSection] as Hashtable)[line.Substring(3, splitpos - 3)] = line.Substring(splitpos + 6, line.Length - splitpos - 8); + }else{ + CurrentName = line.Substring(3, splitpos - 3); + (Data[CurrentSection] as Hashtable)[CurrentName] = line.Substring(splitpos + 6, line.Length - splitpos - 6); + } + }else{ // resume value on next line (multilined crap :3) + if (line.EndsWith("\";")){ + (Data[CurrentSection] as Hashtable)[CurrentName] += "\n" + line.Substring(1, line.Length - 3); + CurrentName = ""; + }else{ + (Data[CurrentSection] as Hashtable)[CurrentName] += "\n" + line; + } + } + } + } + Console.WriteLine("Finished reading '" + file + "', " + entrys + " entrys"); + Busy = false; + return true; + } + + Busy = false; + return false; + } + + public static bool IsBusy(){ + return Busy; + } + + public static bool Value_Exist(string section, string name){ + while (Busy) { }; + Busy = true; + if (Data[section] == null){ + + Busy = false; + return false; + } + + if ((Data[section] as Hashtable)[name] == null){ + + Busy = false; + return false; + } + + Busy = false; + return true; + } + + public static Hashtable Section_Get(string name){ + while (Busy) { }; + Busy = true; + if (Data[name] == null) { + Busy = false; + return new Hashtable(); + } + + Busy = false; + return (Hashtable)Data[name]; + } + + public static bool Section_Exists(string name){ + while (Busy) { }; + return Data[name] != null; + } + + public static void Section_Set(string name, Hashtable data){ + while (Busy) { }; + Busy = true; + + Data[name] = data; + + Busy = false; + } + + public static string Value_Get(string section, string name){ + while (Busy) { }; + Busy = true; + + if (Data[section] == null) { + Busy = false; + return ""; + } + + Busy = false; + return (string)(Data[section] as Hashtable)[name]; + } + + public static string Value_Get(string section, string name, string def){ + while (Busy) { }; + Busy = true; + + if (Data[section] == null) { + Busy = false; + return def; + } + + Busy = false; + return (string)(Data[section] as Hashtable)[name]; + } + + public static void Value_Set(string section, string name, string value){ + while (Busy) { }; + Busy = true; + + if (Data[section] == null) + Data[section] = new Hashtable(); + + (Data[section] as Hashtable)[name] = value; + + Busy = false; + } + + public static void PrintContent(){ + while (Busy) { }; + Busy = true; + + foreach( DictionaryEntry cat in Data ) + { + Console.WriteLine("[\"" + cat.Key + "\"] = {"); + + Hashtable values = (Hashtable)Data[cat.Key]; + foreach( DictionaryEntry entry in values) + { + Console.WriteLine(" [\"" + entry.Key + "\"] = \"" + entry.Value + "\";"); + } + + Console.WriteLine("}"); + Console.WriteLine(""); + } + + Busy = false; + } + } +} \ No newline at end of file diff --git a/GamerService Updater/Form1.Designer.cs b/GamerService Updater/Form1.Designer.cs new file mode 100644 index 0000000..007f094 --- /dev/null +++ b/GamerService Updater/Form1.Designer.cs @@ -0,0 +1,1005 @@ +namespace GamerService_Updater +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.timer1 = new System.Windows.Forms.Timer(this.components); + this.checkBox16 = new System.Windows.Forms.CheckBox(); + this.checkBox17 = new System.Windows.Forms.CheckBox(); + this.checkBox18 = new System.Windows.Forms.CheckBox(); + this.checkBox19 = new System.Windows.Forms.CheckBox(); + this.checkBox20 = new System.Windows.Forms.CheckBox(); + this.checkBox21 = new System.Windows.Forms.CheckBox(); + this.checkBox22 = new System.Windows.Forms.CheckBox(); + this.checkBox23 = new System.Windows.Forms.CheckBox(); + this.checkBox24 = new System.Windows.Forms.CheckBox(); + this.checkBox29 = new System.Windows.Forms.CheckBox(); + this.checkBox30 = new System.Windows.Forms.CheckBox(); + this.checkBox31 = new System.Windows.Forms.CheckBox(); + this.checkBox32 = new System.Windows.Forms.CheckBox(); + this.checkBox33 = new System.Windows.Forms.CheckBox(); + this.checkBox34 = new System.Windows.Forms.CheckBox(); + this.checkBox35 = new System.Windows.Forms.CheckBox(); + this.checkBox36 = new System.Windows.Forms.CheckBox(); + this.checkBox37 = new System.Windows.Forms.CheckBox(); + this.checkBox42 = new System.Windows.Forms.CheckBox(); + this.checkBox43 = new System.Windows.Forms.CheckBox(); + this.checkBox44 = new System.Windows.Forms.CheckBox(); + this.checkBox45 = new System.Windows.Forms.CheckBox(); + this.checkBox46 = new System.Windows.Forms.CheckBox(); + this.checkBox47 = new System.Windows.Forms.CheckBox(); + this.checkBox48 = new System.Windows.Forms.CheckBox(); + this.checkBox49 = new System.Windows.Forms.CheckBox(); + this.checkBox50 = new System.Windows.Forms.CheckBox(); + this.checkBox55 = new System.Windows.Forms.CheckBox(); + this.checkBox56 = new System.Windows.Forms.CheckBox(); + this.checkBox57 = new System.Windows.Forms.CheckBox(); + this.checkBox58 = new System.Windows.Forms.CheckBox(); + this.checkBox59 = new System.Windows.Forms.CheckBox(); + this.checkBox60 = new System.Windows.Forms.CheckBox(); + this.checkBox61 = new System.Windows.Forms.CheckBox(); + this.checkBox62 = new System.Windows.Forms.CheckBox(); + this.checkBox63 = new System.Windows.Forms.CheckBox(); + this.checkBox68 = new System.Windows.Forms.CheckBox(); + this.checkBox69 = new System.Windows.Forms.CheckBox(); + this.checkBox70 = new System.Windows.Forms.CheckBox(); + this.checkBox71 = new System.Windows.Forms.CheckBox(); + this.checkBox72 = new System.Windows.Forms.CheckBox(); + this.checkBox73 = new System.Windows.Forms.CheckBox(); + this.checkBox74 = new System.Windows.Forms.CheckBox(); + this.checkBox75 = new System.Windows.Forms.CheckBox(); + this.checkBox76 = new System.Windows.Forms.CheckBox(); + this.checkBox81 = new System.Windows.Forms.CheckBox(); + this.checkBox82 = new System.Windows.Forms.CheckBox(); + this.checkBox83 = new System.Windows.Forms.CheckBox(); + this.checkBox84 = new System.Windows.Forms.CheckBox(); + this.checkBox85 = new System.Windows.Forms.CheckBox(); + this.checkBox86 = new System.Windows.Forms.CheckBox(); + this.checkBox87 = new System.Windows.Forms.CheckBox(); + this.checkBox88 = new System.Windows.Forms.CheckBox(); + this.checkBox89 = new System.Windows.Forms.CheckBox(); + this.checkBox94 = new System.Windows.Forms.CheckBox(); + this.checkBox95 = new System.Windows.Forms.CheckBox(); + this.checkBox96 = new System.Windows.Forms.CheckBox(); + this.checkBox97 = new System.Windows.Forms.CheckBox(); + this.checkBox98 = new System.Windows.Forms.CheckBox(); + this.checkBox99 = new System.Windows.Forms.CheckBox(); + this.checkBox100 = new System.Windows.Forms.CheckBox(); + this.checkBox101 = new System.Windows.Forms.CheckBox(); + this.checkBox102 = new System.Windows.Forms.CheckBox(); + this.checkBox107 = new System.Windows.Forms.CheckBox(); + this.checkBox108 = new System.Windows.Forms.CheckBox(); + this.checkBox109 = new System.Windows.Forms.CheckBox(); + this.checkBox110 = new System.Windows.Forms.CheckBox(); + this.checkBox111 = new System.Windows.Forms.CheckBox(); + this.checkBox112 = new System.Windows.Forms.CheckBox(); + this.checkBox113 = new System.Windows.Forms.CheckBox(); + this.checkBox114 = new System.Windows.Forms.CheckBox(); + this.checkBox115 = new System.Windows.Forms.CheckBox(); + this.SuspendLayout(); + // + // timer1 + // + this.timer1.Interval = 1; + this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + // + // checkBox16 + // + this.checkBox16.Checked = true; + this.checkBox16.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox16.Enabled = false; + this.checkBox16.Location = new System.Drawing.Point(117, 4); + this.checkBox16.Name = "checkBox16"; + this.checkBox16.Size = new System.Drawing.Size(14, 13); + this.checkBox16.TabIndex = 71; + this.checkBox16.UseVisualStyleBackColor = true; + // + // checkBox17 + // + this.checkBox17.Checked = true; + this.checkBox17.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox17.Enabled = false; + this.checkBox17.Location = new System.Drawing.Point(103, 4); + this.checkBox17.Name = "checkBox17"; + this.checkBox17.Size = new System.Drawing.Size(14, 13); + this.checkBox17.TabIndex = 70; + this.checkBox17.UseVisualStyleBackColor = true; + // + // checkBox18 + // + this.checkBox18.Checked = true; + this.checkBox18.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox18.Enabled = false; + this.checkBox18.Location = new System.Drawing.Point(89, 4); + this.checkBox18.Name = "checkBox18"; + this.checkBox18.Size = new System.Drawing.Size(14, 13); + this.checkBox18.TabIndex = 69; + this.checkBox18.UseVisualStyleBackColor = true; + // + // checkBox19 + // + this.checkBox19.Enabled = false; + this.checkBox19.Location = new System.Drawing.Point(75, 4); + this.checkBox19.Name = "checkBox19"; + this.checkBox19.Size = new System.Drawing.Size(14, 13); + this.checkBox19.TabIndex = 68; + this.checkBox19.UseVisualStyleBackColor = true; + // + // checkBox20 + // + this.checkBox20.Enabled = false; + this.checkBox20.Location = new System.Drawing.Point(61, 4); + this.checkBox20.Name = "checkBox20"; + this.checkBox20.Size = new System.Drawing.Size(14, 13); + this.checkBox20.TabIndex = 67; + this.checkBox20.UseVisualStyleBackColor = true; + // + // checkBox21 + // + this.checkBox21.Enabled = false; + this.checkBox21.Location = new System.Drawing.Point(47, 4); + this.checkBox21.Name = "checkBox21"; + this.checkBox21.Size = new System.Drawing.Size(14, 13); + this.checkBox21.TabIndex = 66; + this.checkBox21.UseVisualStyleBackColor = true; + // + // checkBox22 + // + this.checkBox22.Checked = true; + this.checkBox22.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox22.Enabled = false; + this.checkBox22.Location = new System.Drawing.Point(33, 4); + this.checkBox22.Name = "checkBox22"; + this.checkBox22.Size = new System.Drawing.Size(14, 13); + this.checkBox22.TabIndex = 65; + this.checkBox22.UseVisualStyleBackColor = true; + // + // checkBox23 + // + this.checkBox23.Checked = true; + this.checkBox23.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox23.Enabled = false; + this.checkBox23.Location = new System.Drawing.Point(19, 4); + this.checkBox23.Name = "checkBox23"; + this.checkBox23.Size = new System.Drawing.Size(14, 13); + this.checkBox23.TabIndex = 64; + this.checkBox23.UseVisualStyleBackColor = true; + // + // checkBox24 + // + this.checkBox24.Checked = true; + this.checkBox24.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox24.Enabled = false; + this.checkBox24.Location = new System.Drawing.Point(5, 4); + this.checkBox24.Name = "checkBox24"; + this.checkBox24.Size = new System.Drawing.Size(14, 13); + this.checkBox24.TabIndex = 63; + this.checkBox24.UseVisualStyleBackColor = true; + // + // checkBox29 + // + this.checkBox29.Checked = true; + this.checkBox29.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox29.Enabled = false; + this.checkBox29.Location = new System.Drawing.Point(117, 18); + this.checkBox29.Name = "checkBox29"; + this.checkBox29.Size = new System.Drawing.Size(14, 13); + this.checkBox29.TabIndex = 84; + this.checkBox29.UseVisualStyleBackColor = true; + // + // checkBox30 + // + this.checkBox30.Checked = true; + this.checkBox30.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox30.Enabled = false; + this.checkBox30.Location = new System.Drawing.Point(103, 18); + this.checkBox30.Name = "checkBox30"; + this.checkBox30.Size = new System.Drawing.Size(14, 13); + this.checkBox30.TabIndex = 83; + this.checkBox30.UseVisualStyleBackColor = true; + // + // checkBox31 + // + this.checkBox31.Checked = true; + this.checkBox31.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox31.Enabled = false; + this.checkBox31.Location = new System.Drawing.Point(89, 18); + this.checkBox31.Name = "checkBox31"; + this.checkBox31.Size = new System.Drawing.Size(14, 13); + this.checkBox31.TabIndex = 82; + this.checkBox31.UseVisualStyleBackColor = true; + // + // checkBox32 + // + this.checkBox32.Enabled = false; + this.checkBox32.Location = new System.Drawing.Point(75, 18); + this.checkBox32.Name = "checkBox32"; + this.checkBox32.Size = new System.Drawing.Size(14, 13); + this.checkBox32.TabIndex = 81; + this.checkBox32.UseVisualStyleBackColor = true; + // + // checkBox33 + // + this.checkBox33.Enabled = false; + this.checkBox33.Location = new System.Drawing.Point(61, 18); + this.checkBox33.Name = "checkBox33"; + this.checkBox33.Size = new System.Drawing.Size(14, 13); + this.checkBox33.TabIndex = 80; + this.checkBox33.UseVisualStyleBackColor = true; + // + // checkBox34 + // + this.checkBox34.Enabled = false; + this.checkBox34.Location = new System.Drawing.Point(47, 18); + this.checkBox34.Name = "checkBox34"; + this.checkBox34.Size = new System.Drawing.Size(14, 13); + this.checkBox34.TabIndex = 79; + this.checkBox34.UseVisualStyleBackColor = true; + // + // checkBox35 + // + this.checkBox35.Checked = true; + this.checkBox35.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox35.Enabled = false; + this.checkBox35.Location = new System.Drawing.Point(33, 18); + this.checkBox35.Name = "checkBox35"; + this.checkBox35.Size = new System.Drawing.Size(14, 13); + this.checkBox35.TabIndex = 78; + this.checkBox35.UseVisualStyleBackColor = true; + // + // checkBox36 + // + this.checkBox36.Checked = true; + this.checkBox36.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox36.Enabled = false; + this.checkBox36.Location = new System.Drawing.Point(19, 18); + this.checkBox36.Name = "checkBox36"; + this.checkBox36.Size = new System.Drawing.Size(14, 13); + this.checkBox36.TabIndex = 77; + this.checkBox36.UseVisualStyleBackColor = true; + // + // checkBox37 + // + this.checkBox37.Checked = true; + this.checkBox37.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox37.Enabled = false; + this.checkBox37.Location = new System.Drawing.Point(5, 18); + this.checkBox37.Name = "checkBox37"; + this.checkBox37.Size = new System.Drawing.Size(14, 13); + this.checkBox37.TabIndex = 76; + this.checkBox37.UseVisualStyleBackColor = true; + // + // checkBox42 + // + this.checkBox42.Checked = true; + this.checkBox42.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox42.Enabled = false; + this.checkBox42.Location = new System.Drawing.Point(117, 32); + this.checkBox42.Name = "checkBox42"; + this.checkBox42.Size = new System.Drawing.Size(14, 13); + this.checkBox42.TabIndex = 97; + this.checkBox42.UseVisualStyleBackColor = true; + // + // checkBox43 + // + this.checkBox43.Checked = true; + this.checkBox43.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox43.Enabled = false; + this.checkBox43.Location = new System.Drawing.Point(103, 32); + this.checkBox43.Name = "checkBox43"; + this.checkBox43.Size = new System.Drawing.Size(14, 13); + this.checkBox43.TabIndex = 96; + this.checkBox43.UseVisualStyleBackColor = true; + // + // checkBox44 + // + this.checkBox44.Checked = true; + this.checkBox44.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox44.Enabled = false; + this.checkBox44.Location = new System.Drawing.Point(89, 32); + this.checkBox44.Name = "checkBox44"; + this.checkBox44.Size = new System.Drawing.Size(14, 13); + this.checkBox44.TabIndex = 95; + this.checkBox44.UseVisualStyleBackColor = true; + // + // checkBox45 + // + this.checkBox45.Enabled = false; + this.checkBox45.Location = new System.Drawing.Point(75, 32); + this.checkBox45.Name = "checkBox45"; + this.checkBox45.Size = new System.Drawing.Size(14, 13); + this.checkBox45.TabIndex = 94; + this.checkBox45.UseVisualStyleBackColor = true; + // + // checkBox46 + // + this.checkBox46.Enabled = false; + this.checkBox46.Location = new System.Drawing.Point(61, 32); + this.checkBox46.Name = "checkBox46"; + this.checkBox46.Size = new System.Drawing.Size(14, 13); + this.checkBox46.TabIndex = 93; + this.checkBox46.UseVisualStyleBackColor = true; + // + // checkBox47 + // + this.checkBox47.Enabled = false; + this.checkBox47.Location = new System.Drawing.Point(47, 32); + this.checkBox47.Name = "checkBox47"; + this.checkBox47.Size = new System.Drawing.Size(14, 13); + this.checkBox47.TabIndex = 92; + this.checkBox47.UseVisualStyleBackColor = true; + // + // checkBox48 + // + this.checkBox48.Checked = true; + this.checkBox48.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox48.Enabled = false; + this.checkBox48.Location = new System.Drawing.Point(33, 32); + this.checkBox48.Name = "checkBox48"; + this.checkBox48.Size = new System.Drawing.Size(14, 13); + this.checkBox48.TabIndex = 91; + this.checkBox48.UseVisualStyleBackColor = true; + // + // checkBox49 + // + this.checkBox49.Checked = true; + this.checkBox49.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox49.Enabled = false; + this.checkBox49.Location = new System.Drawing.Point(19, 32); + this.checkBox49.Name = "checkBox49"; + this.checkBox49.Size = new System.Drawing.Size(14, 13); + this.checkBox49.TabIndex = 90; + this.checkBox49.UseVisualStyleBackColor = true; + // + // checkBox50 + // + this.checkBox50.Checked = true; + this.checkBox50.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox50.Enabled = false; + this.checkBox50.Location = new System.Drawing.Point(5, 32); + this.checkBox50.Name = "checkBox50"; + this.checkBox50.Size = new System.Drawing.Size(14, 13); + this.checkBox50.TabIndex = 89; + this.checkBox50.UseVisualStyleBackColor = true; + // + // checkBox55 + // + this.checkBox55.Enabled = false; + this.checkBox55.Location = new System.Drawing.Point(117, 46); + this.checkBox55.Name = "checkBox55"; + this.checkBox55.Size = new System.Drawing.Size(14, 13); + this.checkBox55.TabIndex = 110; + this.checkBox55.UseVisualStyleBackColor = true; + // + // checkBox56 + // + this.checkBox56.Enabled = false; + this.checkBox56.Location = new System.Drawing.Point(103, 46); + this.checkBox56.Name = "checkBox56"; + this.checkBox56.Size = new System.Drawing.Size(14, 13); + this.checkBox56.TabIndex = 109; + this.checkBox56.UseVisualStyleBackColor = true; + // + // checkBox57 + // + this.checkBox57.Enabled = false; + this.checkBox57.Location = new System.Drawing.Point(89, 46); + this.checkBox57.Name = "checkBox57"; + this.checkBox57.Size = new System.Drawing.Size(14, 13); + this.checkBox57.TabIndex = 108; + this.checkBox57.UseVisualStyleBackColor = true; + // + // checkBox58 + // + this.checkBox58.Checked = true; + this.checkBox58.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox58.Enabled = false; + this.checkBox58.Location = new System.Drawing.Point(75, 46); + this.checkBox58.Name = "checkBox58"; + this.checkBox58.Size = new System.Drawing.Size(14, 13); + this.checkBox58.TabIndex = 107; + this.checkBox58.UseVisualStyleBackColor = true; + // + // checkBox59 + // + this.checkBox59.Checked = true; + this.checkBox59.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox59.Enabled = false; + this.checkBox59.Location = new System.Drawing.Point(61, 46); + this.checkBox59.Name = "checkBox59"; + this.checkBox59.Size = new System.Drawing.Size(14, 13); + this.checkBox59.TabIndex = 106; + this.checkBox59.UseVisualStyleBackColor = true; + // + // checkBox60 + // + this.checkBox60.Checked = true; + this.checkBox60.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox60.Enabled = false; + this.checkBox60.Location = new System.Drawing.Point(47, 46); + this.checkBox60.Name = "checkBox60"; + this.checkBox60.Size = new System.Drawing.Size(14, 13); + this.checkBox60.TabIndex = 105; + this.checkBox60.UseVisualStyleBackColor = true; + // + // checkBox61 + // + this.checkBox61.Enabled = false; + this.checkBox61.Location = new System.Drawing.Point(33, 46); + this.checkBox61.Name = "checkBox61"; + this.checkBox61.Size = new System.Drawing.Size(14, 13); + this.checkBox61.TabIndex = 104; + this.checkBox61.UseVisualStyleBackColor = true; + // + // checkBox62 + // + this.checkBox62.Enabled = false; + this.checkBox62.Location = new System.Drawing.Point(19, 46); + this.checkBox62.Name = "checkBox62"; + this.checkBox62.Size = new System.Drawing.Size(14, 13); + this.checkBox62.TabIndex = 103; + this.checkBox62.UseVisualStyleBackColor = true; + // + // checkBox63 + // + this.checkBox63.Enabled = false; + this.checkBox63.Location = new System.Drawing.Point(5, 46); + this.checkBox63.Name = "checkBox63"; + this.checkBox63.Size = new System.Drawing.Size(14, 13); + this.checkBox63.TabIndex = 102; + this.checkBox63.UseVisualStyleBackColor = true; + // + // checkBox68 + // + this.checkBox68.Enabled = false; + this.checkBox68.Location = new System.Drawing.Point(117, 60); + this.checkBox68.Name = "checkBox68"; + this.checkBox68.Size = new System.Drawing.Size(14, 13); + this.checkBox68.TabIndex = 123; + this.checkBox68.UseVisualStyleBackColor = true; + // + // checkBox69 + // + this.checkBox69.Enabled = false; + this.checkBox69.Location = new System.Drawing.Point(103, 60); + this.checkBox69.Name = "checkBox69"; + this.checkBox69.Size = new System.Drawing.Size(14, 13); + this.checkBox69.TabIndex = 122; + this.checkBox69.UseVisualStyleBackColor = true; + // + // checkBox70 + // + this.checkBox70.Checked = true; + this.checkBox70.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox70.Enabled = false; + this.checkBox70.Location = new System.Drawing.Point(89, 60); + this.checkBox70.Name = "checkBox70"; + this.checkBox70.Size = new System.Drawing.Size(14, 13); + this.checkBox70.TabIndex = 121; + this.checkBox70.UseVisualStyleBackColor = true; + // + // checkBox71 + // + this.checkBox71.Checked = true; + this.checkBox71.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox71.Enabled = false; + this.checkBox71.Location = new System.Drawing.Point(75, 60); + this.checkBox71.Name = "checkBox71"; + this.checkBox71.Size = new System.Drawing.Size(14, 13); + this.checkBox71.TabIndex = 120; + this.checkBox71.UseVisualStyleBackColor = true; + // + // checkBox72 + // + this.checkBox72.Checked = true; + this.checkBox72.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox72.Enabled = false; + this.checkBox72.Location = new System.Drawing.Point(61, 60); + this.checkBox72.Name = "checkBox72"; + this.checkBox72.Size = new System.Drawing.Size(14, 13); + this.checkBox72.TabIndex = 119; + this.checkBox72.UseVisualStyleBackColor = true; + // + // checkBox73 + // + this.checkBox73.Checked = true; + this.checkBox73.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox73.Enabled = false; + this.checkBox73.Location = new System.Drawing.Point(47, 60); + this.checkBox73.Name = "checkBox73"; + this.checkBox73.Size = new System.Drawing.Size(14, 13); + this.checkBox73.TabIndex = 118; + this.checkBox73.UseVisualStyleBackColor = true; + // + // checkBox74 + // + this.checkBox74.Checked = true; + this.checkBox74.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox74.Enabled = false; + this.checkBox74.Location = new System.Drawing.Point(33, 60); + this.checkBox74.Name = "checkBox74"; + this.checkBox74.Size = new System.Drawing.Size(14, 13); + this.checkBox74.TabIndex = 117; + this.checkBox74.UseVisualStyleBackColor = true; + // + // checkBox75 + // + this.checkBox75.Enabled = false; + this.checkBox75.Location = new System.Drawing.Point(19, 60); + this.checkBox75.Name = "checkBox75"; + this.checkBox75.Size = new System.Drawing.Size(14, 13); + this.checkBox75.TabIndex = 116; + this.checkBox75.UseVisualStyleBackColor = true; + // + // checkBox76 + // + this.checkBox76.Enabled = false; + this.checkBox76.Location = new System.Drawing.Point(5, 60); + this.checkBox76.Name = "checkBox76"; + this.checkBox76.Size = new System.Drawing.Size(14, 13); + this.checkBox76.TabIndex = 115; + this.checkBox76.UseVisualStyleBackColor = true; + // + // checkBox81 + // + this.checkBox81.Enabled = false; + this.checkBox81.Location = new System.Drawing.Point(117, 74); + this.checkBox81.Name = "checkBox81"; + this.checkBox81.Size = new System.Drawing.Size(14, 13); + this.checkBox81.TabIndex = 136; + this.checkBox81.UseVisualStyleBackColor = true; + // + // checkBox82 + // + this.checkBox82.Checked = true; + this.checkBox82.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox82.Enabled = false; + this.checkBox82.Location = new System.Drawing.Point(103, 74); + this.checkBox82.Name = "checkBox82"; + this.checkBox82.Size = new System.Drawing.Size(14, 13); + this.checkBox82.TabIndex = 135; + this.checkBox82.UseVisualStyleBackColor = true; + // + // checkBox83 + // + this.checkBox83.Checked = true; + this.checkBox83.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox83.Enabled = false; + this.checkBox83.Location = new System.Drawing.Point(89, 74); + this.checkBox83.Name = "checkBox83"; + this.checkBox83.Size = new System.Drawing.Size(14, 13); + this.checkBox83.TabIndex = 134; + this.checkBox83.UseVisualStyleBackColor = true; + // + // checkBox84 + // + this.checkBox84.Checked = true; + this.checkBox84.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox84.Enabled = false; + this.checkBox84.Location = new System.Drawing.Point(75, 74); + this.checkBox84.Name = "checkBox84"; + this.checkBox84.Size = new System.Drawing.Size(14, 13); + this.checkBox84.TabIndex = 133; + this.checkBox84.UseVisualStyleBackColor = true; + // + // checkBox85 + // + this.checkBox85.Checked = true; + this.checkBox85.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox85.Enabled = false; + this.checkBox85.Location = new System.Drawing.Point(61, 74); + this.checkBox85.Name = "checkBox85"; + this.checkBox85.Size = new System.Drawing.Size(14, 13); + this.checkBox85.TabIndex = 132; + this.checkBox85.UseVisualStyleBackColor = true; + // + // checkBox86 + // + this.checkBox86.Checked = true; + this.checkBox86.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox86.Enabled = false; + this.checkBox86.Location = new System.Drawing.Point(47, 74); + this.checkBox86.Name = "checkBox86"; + this.checkBox86.Size = new System.Drawing.Size(14, 13); + this.checkBox86.TabIndex = 131; + this.checkBox86.UseVisualStyleBackColor = true; + // + // checkBox87 + // + this.checkBox87.Checked = true; + this.checkBox87.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox87.Enabled = false; + this.checkBox87.Location = new System.Drawing.Point(33, 74); + this.checkBox87.Name = "checkBox87"; + this.checkBox87.Size = new System.Drawing.Size(14, 13); + this.checkBox87.TabIndex = 130; + this.checkBox87.UseVisualStyleBackColor = true; + // + // checkBox88 + // + this.checkBox88.Checked = true; + this.checkBox88.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox88.Enabled = false; + this.checkBox88.Location = new System.Drawing.Point(19, 74); + this.checkBox88.Name = "checkBox88"; + this.checkBox88.Size = new System.Drawing.Size(14, 13); + this.checkBox88.TabIndex = 129; + this.checkBox88.UseVisualStyleBackColor = true; + // + // checkBox89 + // + this.checkBox89.Enabled = false; + this.checkBox89.Location = new System.Drawing.Point(5, 74); + this.checkBox89.Name = "checkBox89"; + this.checkBox89.Size = new System.Drawing.Size(14, 13); + this.checkBox89.TabIndex = 128; + this.checkBox89.UseVisualStyleBackColor = true; + // + // checkBox94 + // + this.checkBox94.Enabled = false; + this.checkBox94.Location = new System.Drawing.Point(117, 88); + this.checkBox94.Name = "checkBox94"; + this.checkBox94.Size = new System.Drawing.Size(14, 13); + this.checkBox94.TabIndex = 149; + this.checkBox94.UseVisualStyleBackColor = true; + // + // checkBox95 + // + this.checkBox95.Checked = true; + this.checkBox95.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox95.Enabled = false; + this.checkBox95.Location = new System.Drawing.Point(103, 88); + this.checkBox95.Name = "checkBox95"; + this.checkBox95.Size = new System.Drawing.Size(14, 13); + this.checkBox95.TabIndex = 148; + this.checkBox95.UseVisualStyleBackColor = true; + // + // checkBox96 + // + this.checkBox96.Checked = true; + this.checkBox96.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox96.Enabled = false; + this.checkBox96.Location = new System.Drawing.Point(89, 88); + this.checkBox96.Name = "checkBox96"; + this.checkBox96.Size = new System.Drawing.Size(14, 13); + this.checkBox96.TabIndex = 147; + this.checkBox96.UseVisualStyleBackColor = true; + // + // checkBox97 + // + this.checkBox97.Enabled = false; + this.checkBox97.Location = new System.Drawing.Point(75, 88); + this.checkBox97.Name = "checkBox97"; + this.checkBox97.Size = new System.Drawing.Size(14, 13); + this.checkBox97.TabIndex = 146; + this.checkBox97.UseVisualStyleBackColor = true; + // + // checkBox98 + // + this.checkBox98.Enabled = false; + this.checkBox98.Location = new System.Drawing.Point(61, 88); + this.checkBox98.Name = "checkBox98"; + this.checkBox98.Size = new System.Drawing.Size(14, 13); + this.checkBox98.TabIndex = 145; + this.checkBox98.UseVisualStyleBackColor = true; + // + // checkBox99 + // + this.checkBox99.Enabled = false; + this.checkBox99.Location = new System.Drawing.Point(47, 88); + this.checkBox99.Name = "checkBox99"; + this.checkBox99.Size = new System.Drawing.Size(14, 13); + this.checkBox99.TabIndex = 144; + this.checkBox99.UseVisualStyleBackColor = true; + // + // checkBox100 + // + this.checkBox100.Checked = true; + this.checkBox100.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox100.Enabled = false; + this.checkBox100.Location = new System.Drawing.Point(33, 88); + this.checkBox100.Name = "checkBox100"; + this.checkBox100.Size = new System.Drawing.Size(14, 13); + this.checkBox100.TabIndex = 143; + this.checkBox100.UseVisualStyleBackColor = true; + // + // checkBox101 + // + this.checkBox101.Checked = true; + this.checkBox101.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox101.Enabled = false; + this.checkBox101.Location = new System.Drawing.Point(19, 88); + this.checkBox101.Name = "checkBox101"; + this.checkBox101.Size = new System.Drawing.Size(14, 13); + this.checkBox101.TabIndex = 142; + this.checkBox101.UseVisualStyleBackColor = true; + // + // checkBox102 + // + this.checkBox102.Enabled = false; + this.checkBox102.Location = new System.Drawing.Point(5, 88); + this.checkBox102.Name = "checkBox102"; + this.checkBox102.Size = new System.Drawing.Size(14, 13); + this.checkBox102.TabIndex = 141; + this.checkBox102.UseVisualStyleBackColor = true; + // + // checkBox107 + // + this.checkBox107.Enabled = false; + this.checkBox107.Location = new System.Drawing.Point(117, 102); + this.checkBox107.Name = "checkBox107"; + this.checkBox107.Size = new System.Drawing.Size(14, 13); + this.checkBox107.TabIndex = 162; + this.checkBox107.UseVisualStyleBackColor = true; + // + // checkBox108 + // + this.checkBox108.Checked = true; + this.checkBox108.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox108.Enabled = false; + this.checkBox108.Location = new System.Drawing.Point(103, 102); + this.checkBox108.Name = "checkBox108"; + this.checkBox108.Size = new System.Drawing.Size(14, 13); + this.checkBox108.TabIndex = 161; + this.checkBox108.UseVisualStyleBackColor = true; + // + // checkBox109 + // + this.checkBox109.Checked = true; + this.checkBox109.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox109.Enabled = false; + this.checkBox109.Location = new System.Drawing.Point(89, 102); + this.checkBox109.Name = "checkBox109"; + this.checkBox109.Size = new System.Drawing.Size(14, 13); + this.checkBox109.TabIndex = 160; + this.checkBox109.UseVisualStyleBackColor = true; + // + // checkBox110 + // + this.checkBox110.Enabled = false; + this.checkBox110.Location = new System.Drawing.Point(75, 102); + this.checkBox110.Name = "checkBox110"; + this.checkBox110.Size = new System.Drawing.Size(14, 13); + this.checkBox110.TabIndex = 159; + this.checkBox110.UseVisualStyleBackColor = true; + // + // checkBox111 + // + this.checkBox111.Enabled = false; + this.checkBox111.Location = new System.Drawing.Point(61, 102); + this.checkBox111.Name = "checkBox111"; + this.checkBox111.Size = new System.Drawing.Size(14, 13); + this.checkBox111.TabIndex = 158; + this.checkBox111.UseVisualStyleBackColor = true; + // + // checkBox112 + // + this.checkBox112.Enabled = false; + this.checkBox112.Location = new System.Drawing.Point(47, 102); + this.checkBox112.Name = "checkBox112"; + this.checkBox112.Size = new System.Drawing.Size(14, 13); + this.checkBox112.TabIndex = 157; + this.checkBox112.UseVisualStyleBackColor = true; + // + // checkBox113 + // + this.checkBox113.Checked = true; + this.checkBox113.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox113.Enabled = false; + this.checkBox113.Location = new System.Drawing.Point(33, 102); + this.checkBox113.Name = "checkBox113"; + this.checkBox113.Size = new System.Drawing.Size(14, 13); + this.checkBox113.TabIndex = 156; + this.checkBox113.UseVisualStyleBackColor = true; + // + // checkBox114 + // + this.checkBox114.Checked = true; + this.checkBox114.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox114.Enabled = false; + this.checkBox114.Location = new System.Drawing.Point(19, 102); + this.checkBox114.Name = "checkBox114"; + this.checkBox114.Size = new System.Drawing.Size(14, 13); + this.checkBox114.TabIndex = 155; + this.checkBox114.UseVisualStyleBackColor = true; + // + // checkBox115 + // + this.checkBox115.Enabled = false; + this.checkBox115.Location = new System.Drawing.Point(5, 102); + this.checkBox115.Name = "checkBox115"; + this.checkBox115.Size = new System.Drawing.Size(14, 13); + this.checkBox115.TabIndex = 154; + this.checkBox115.UseVisualStyleBackColor = true; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(136, 120); + this.Controls.Add(this.checkBox107); + this.Controls.Add(this.checkBox108); + this.Controls.Add(this.checkBox109); + this.Controls.Add(this.checkBox110); + this.Controls.Add(this.checkBox111); + this.Controls.Add(this.checkBox112); + this.Controls.Add(this.checkBox113); + this.Controls.Add(this.checkBox114); + this.Controls.Add(this.checkBox115); + this.Controls.Add(this.checkBox94); + this.Controls.Add(this.checkBox95); + this.Controls.Add(this.checkBox96); + this.Controls.Add(this.checkBox97); + this.Controls.Add(this.checkBox98); + this.Controls.Add(this.checkBox99); + this.Controls.Add(this.checkBox100); + this.Controls.Add(this.checkBox101); + this.Controls.Add(this.checkBox102); + this.Controls.Add(this.checkBox81); + this.Controls.Add(this.checkBox82); + this.Controls.Add(this.checkBox83); + this.Controls.Add(this.checkBox84); + this.Controls.Add(this.checkBox85); + this.Controls.Add(this.checkBox86); + this.Controls.Add(this.checkBox87); + this.Controls.Add(this.checkBox88); + this.Controls.Add(this.checkBox89); + this.Controls.Add(this.checkBox68); + this.Controls.Add(this.checkBox69); + this.Controls.Add(this.checkBox70); + this.Controls.Add(this.checkBox71); + this.Controls.Add(this.checkBox72); + this.Controls.Add(this.checkBox73); + this.Controls.Add(this.checkBox74); + this.Controls.Add(this.checkBox75); + this.Controls.Add(this.checkBox76); + this.Controls.Add(this.checkBox55); + this.Controls.Add(this.checkBox56); + this.Controls.Add(this.checkBox57); + this.Controls.Add(this.checkBox58); + this.Controls.Add(this.checkBox59); + this.Controls.Add(this.checkBox60); + this.Controls.Add(this.checkBox61); + this.Controls.Add(this.checkBox62); + this.Controls.Add(this.checkBox63); + this.Controls.Add(this.checkBox42); + this.Controls.Add(this.checkBox43); + this.Controls.Add(this.checkBox44); + this.Controls.Add(this.checkBox45); + this.Controls.Add(this.checkBox46); + this.Controls.Add(this.checkBox47); + this.Controls.Add(this.checkBox48); + this.Controls.Add(this.checkBox49); + this.Controls.Add(this.checkBox50); + this.Controls.Add(this.checkBox29); + this.Controls.Add(this.checkBox30); + this.Controls.Add(this.checkBox31); + this.Controls.Add(this.checkBox32); + this.Controls.Add(this.checkBox33); + this.Controls.Add(this.checkBox34); + this.Controls.Add(this.checkBox35); + this.Controls.Add(this.checkBox36); + this.Controls.Add(this.checkBox37); + this.Controls.Add(this.checkBox16); + this.Controls.Add(this.checkBox17); + this.Controls.Add(this.checkBox18); + this.Controls.Add(this.checkBox19); + this.Controls.Add(this.checkBox20); + this.Controls.Add(this.checkBox21); + this.Controls.Add(this.checkBox22); + this.Controls.Add(this.checkBox23); + this.Controls.Add(this.checkBox24); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.Name = "Form1"; + this.Text = "GamerService Updater"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Timer timer1; + private System.Windows.Forms.CheckBox checkBox16; + private System.Windows.Forms.CheckBox checkBox17; + private System.Windows.Forms.CheckBox checkBox18; + private System.Windows.Forms.CheckBox checkBox19; + private System.Windows.Forms.CheckBox checkBox20; + private System.Windows.Forms.CheckBox checkBox21; + private System.Windows.Forms.CheckBox checkBox22; + private System.Windows.Forms.CheckBox checkBox23; + private System.Windows.Forms.CheckBox checkBox24; + private System.Windows.Forms.CheckBox checkBox29; + private System.Windows.Forms.CheckBox checkBox30; + private System.Windows.Forms.CheckBox checkBox31; + private System.Windows.Forms.CheckBox checkBox32; + private System.Windows.Forms.CheckBox checkBox33; + private System.Windows.Forms.CheckBox checkBox34; + private System.Windows.Forms.CheckBox checkBox35; + private System.Windows.Forms.CheckBox checkBox36; + private System.Windows.Forms.CheckBox checkBox37; + private System.Windows.Forms.CheckBox checkBox42; + private System.Windows.Forms.CheckBox checkBox43; + private System.Windows.Forms.CheckBox checkBox44; + private System.Windows.Forms.CheckBox checkBox45; + private System.Windows.Forms.CheckBox checkBox46; + private System.Windows.Forms.CheckBox checkBox47; + private System.Windows.Forms.CheckBox checkBox48; + private System.Windows.Forms.CheckBox checkBox49; + private System.Windows.Forms.CheckBox checkBox50; + private System.Windows.Forms.CheckBox checkBox55; + private System.Windows.Forms.CheckBox checkBox56; + private System.Windows.Forms.CheckBox checkBox57; + private System.Windows.Forms.CheckBox checkBox58; + private System.Windows.Forms.CheckBox checkBox59; + private System.Windows.Forms.CheckBox checkBox60; + private System.Windows.Forms.CheckBox checkBox61; + private System.Windows.Forms.CheckBox checkBox62; + private System.Windows.Forms.CheckBox checkBox63; + private System.Windows.Forms.CheckBox checkBox68; + private System.Windows.Forms.CheckBox checkBox69; + private System.Windows.Forms.CheckBox checkBox70; + private System.Windows.Forms.CheckBox checkBox71; + private System.Windows.Forms.CheckBox checkBox72; + private System.Windows.Forms.CheckBox checkBox73; + private System.Windows.Forms.CheckBox checkBox74; + private System.Windows.Forms.CheckBox checkBox75; + private System.Windows.Forms.CheckBox checkBox76; + private System.Windows.Forms.CheckBox checkBox81; + private System.Windows.Forms.CheckBox checkBox82; + private System.Windows.Forms.CheckBox checkBox83; + private System.Windows.Forms.CheckBox checkBox84; + private System.Windows.Forms.CheckBox checkBox85; + private System.Windows.Forms.CheckBox checkBox86; + private System.Windows.Forms.CheckBox checkBox87; + private System.Windows.Forms.CheckBox checkBox88; + private System.Windows.Forms.CheckBox checkBox89; + private System.Windows.Forms.CheckBox checkBox94; + private System.Windows.Forms.CheckBox checkBox95; + private System.Windows.Forms.CheckBox checkBox96; + private System.Windows.Forms.CheckBox checkBox97; + private System.Windows.Forms.CheckBox checkBox98; + private System.Windows.Forms.CheckBox checkBox99; + private System.Windows.Forms.CheckBox checkBox100; + private System.Windows.Forms.CheckBox checkBox101; + private System.Windows.Forms.CheckBox checkBox102; + private System.Windows.Forms.CheckBox checkBox107; + private System.Windows.Forms.CheckBox checkBox108; + private System.Windows.Forms.CheckBox checkBox109; + private System.Windows.Forms.CheckBox checkBox110; + private System.Windows.Forms.CheckBox checkBox111; + private System.Windows.Forms.CheckBox checkBox112; + private System.Windows.Forms.CheckBox checkBox113; + private System.Windows.Forms.CheckBox checkBox114; + private System.Windows.Forms.CheckBox checkBox115; + } +} + diff --git a/GamerService Updater/Form1.cs b/GamerService Updater/Form1.cs new file mode 100644 index 0000000..81330d8 --- /dev/null +++ b/GamerService Updater/Form1.cs @@ -0,0 +1,277 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using System.Net; +using System.IO; +using System.IO.Compression; +using System.Net.Sockets; +using System.Threading; + +namespace GamerService_Updater +{ + public partial class Form1 : Form + { + #region structs + public struct afile{ + public int action; + public string path; + public string rev; + } + #endregion + + #region fncs + public void MakeFolder(string path){ + List folders = String_Explode(path, "/"); + string curdir = System.IO.Directory.GetCurrentDirectory(); + while(folders.Count > 0){ + curdir += "/" + folders[0]; + if (!System.IO.Directory.Exists(curdir)) + System.IO.Directory.CreateDirectory(path); + + folders.RemoveAt(0); + } + } + + public List String_Explode(string text, string spliter){ + List returnz = new List(); + + for (int i = 0; i < text.Length - spliter.Length; i++){ + while (text.Substring(i, spliter.Length) == spliter){ + returnz.Add(text.Substring(0, i)); + text = text.Substring(i + spliter.Length, text.Length - i - spliter.Length); + i = 0; + + if (text.Length == 0)return returnz; + } + } + if (text.Length > 0){ + returnz.Add(text.Substring(0, text.Length)); + } + + return returnz; + } + + public string String_Implode(List Data, string spliter){ + string returnz = ""; + + foreach (string a in Data) + returnz += a + spliter; + + if (returnz == "") return ""; + return returnz.Substring(0, returnz.Length - spliter.Length); + } + #endregion + + public class DownloadInfo { + public string Path; + public string URL; + public string Version; + public int GameID; + public int TotalActions; + + public byte Action; + } + + public List FilesToDownload; + + public List files = new List(); + public string Curversion = "0"; + public string NewVersion = ""; + public string Ip = ""; + public int Port = 0; + + public Form1() + { + InitializeComponent(); + CheckForIllegalCrossThreadCalls = false; + + MrAG.Config.Read("config.gs"); + Curversion = MrAG.Config.Value_Get("Main", "Version", "0.0.0.0"); + } + + private void Form1_FormClosing(object sender, FormClosingEventArgs e) + { + System.Diagnostics.Process.GetCurrentProcess().Close(); + } + + System.Net.WebClient client; + string currenthandelingrev; + private void DoUpdate(){ + this.timer1.Enabled = true; + + client = new WebClient(); + client.Proxy = null; + + string[] FileData = null; + int actions = 0; + try { + FileData = new StreamReader(client.OpenRead("http://" + "gs.mrag.nl/download.php?gid=-1&file=version.txt")).ReadToEnd().Replace("\r", "").Split('\n'); + } catch(Exception e) { + return; + } + + FilesToDownload = new List(); + lock (FilesToDownload) { + currenthandelingrev = ""; + List filesdone = new List(); + foreach (string line in FileData){ + if (line.Length > 0) { + string[] args = null; + if (line.Contains("=")) args = line.Split('='); + + if (line.TrimStart('\t', ' ').StartsWith("#")){ + }else if (args[0] == "VER"){ + if (currenthandelingrev.Length == 0){ + currenthandelingrev = args[1]; + } + if (args[1] == Curversion) { + break; + } + }else{ + if (!filesdone.Contains(args[1])) { + filesdone.Add(args[1]); + DownloadInfo info = new DownloadInfo(); + info.Action = 0; + info.URL = "http://" + "gs.mrag.nl/download.php?gid=-1&file=" + args[1]; + info.Path = args[1]; + + switch (args[0]) { + case "ADD": + info.Action = 0; + break; + + case "MNF": + info.Action = 1; + break; + + case "DEL": + info.Action = 2; + break; + + case "MDR": + info.Action = 3; + break; + } + + FilesToDownload.Add(info); + actions++; + } + } + } + } + + for (int i = FilesToDownload.Count - 1; i > 0; i--) { + FilesToDownload[i].TotalActions = actions; + } + + if (FilesToDownload.Count != 0) + new Thread(new ThreadStart(DoDownloads)).Start(); + else { + MessageBox.Show("No updates :D", "Newest version"); + Application.Exit(); + } + } + } + + private void DoDownloads() { + while (FilesToDownload.Count > 0) { + DownloadInfo info = FilesToDownload[0]; + + switch (info.Action) { + case 0: + int failsafe = 0; + if (File.Exists(info.Path)){ + while (failsafe < 50) { + failsafe++; + try{ + File.Delete(info.Path); + break; + }catch{ + } + } + } + + + + + if (failsafe > 49) { + MessageBox.Show("Fatal error while trying to remove old file: " + info.Path + "\nPlease do this remotely!", "FATAL ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); + Application.Exit(); + return; + } + + client.DownloadFile(new Uri(info.URL.Replace("\\", "/")), info.Path); + break; + + case 1: + if (File.Exists(info.Path)) + File.Delete(info.Path); + + File.Create(info.Path); + break; + + case 2: + if (Directory.Exists(info.Path)) + Directory.Delete(info.Path, true); + + if (File.Exists(info.Path)) + File.Delete(info.Path); + break; + + case 3: + if (Directory.Exists(info.Path)) + Directory.Delete(info.Path, true); + + Directory.CreateDirectory(info.Path); + break; + } + + FilesToDownload.RemoveAt(0); + } + + MrAG.Config.Value_Set("Main", "Version", currenthandelingrev); + MrAG.Config.Write("config.gs"); + Application.Exit(); + + System.Diagnostics.Process.Start("GamerServices.exe"); + } + + List> cblist = new List>(); + private void Form1_Load(object sender, EventArgs e) + { + int currow = 0; + foreach(CheckBox cb in this.Controls){ + if (cb.Checked) { + if (cb.Location.Y != currow) { + cblist.Add(new List()); + } + + cblist[cblist.Count - 1].Add(cb); + cb.Checked = false; + } + } + + DoUpdate(); + } + + private byte timeranimation = 0; + private bool kak = true; + + private void timer1_Tick(object sender, EventArgs e) { + foreach (CheckBox cb in cblist[timeranimation]) { + cb.Checked = kak; + } + + timeranimation++; + if (timeranimation > cblist.Count - 1) { + timeranimation = 0; + kak = !kak; + } + } + } +} diff --git a/GamerService Updater/Form1.resx b/GamerService Updater/Form1.resx new file mode 100644 index 0000000..aac33d5 --- /dev/null +++ b/GamerService Updater/Form1.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 17, 17 + + \ No newline at end of file diff --git a/GamerService Updater/GamerService Updater.csproj b/GamerService Updater/GamerService Updater.csproj new file mode 100644 index 0000000..2882f3d --- /dev/null +++ b/GamerService Updater/GamerService Updater.csproj @@ -0,0 +1,88 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {77C83B45-FCB0-4F45-9666-523D8C4EC8EC} + WinExe + Properties + GamerService_Updater + GamerService Updater + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + \ No newline at end of file diff --git a/GamerService Updater/Program.cs b/GamerService Updater/Program.cs new file mode 100644 index 0000000..7ca6cd0 --- /dev/null +++ b/GamerService Updater/Program.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace GamerService_Updater { + static class Program { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/GamerService Updater/Properties/AssemblyInfo.cs b/GamerService Updater/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..42e3c5a --- /dev/null +++ b/GamerService Updater/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +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("GamerService Updater")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("GamerService Updater")] +[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("08e3f08f-e64e-44cc-967d-5b70fb43b0e1")] + +// 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/GamerService Updater/Properties/Resources.Designer.cs b/GamerService Updater/Properties/Resources.Designer.cs new file mode 100644 index 0000000..316e405 --- /dev/null +++ b/GamerService Updater/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.1 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GamerService_Updater.Properties { + + + /// + /// 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 ((resourceMan == null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GamerService_Updater.Properties.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; + } + } + } +} diff --git a/GamerService Updater/Properties/Resources.resx b/GamerService Updater/Properties/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/GamerService Updater/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/GamerService Updater/Properties/Settings.Designer.cs b/GamerService Updater/Properties/Settings.Designer.cs new file mode 100644 index 0000000..71e39a2 --- /dev/null +++ b/GamerService Updater/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.1 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GamerService_Updater.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/GamerService Updater/Properties/Settings.settings b/GamerService Updater/Properties/Settings.settings new file mode 100644 index 0000000..abf36c5 --- /dev/null +++ b/GamerService Updater/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + +