Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 11.38 KB | None | 0 0
  1. public class Main : Form
  2. {
  3.     // Fields
  4.     private Button button1;
  5.     private Button button10;
  6.     private Button button2;
  7.     private Button button3;
  8.     private Button button4;
  9.     private Button button5;
  10.     private Button button6;
  11.     private Button button7;
  12.     private Button button9;
  13.     private IContainer components;
  14.     private FolderBrowserDialog folderBrowserDialog1;
  15.     private GroupBox groupBox1;
  16.     private GroupBox groupBox2;
  17.     private GroupBox groupBox3;
  18.     private Label label1;
  19.     private Label label2;
  20.     private WebBrowser webBrowser1;
  21.  
  22.     // Methods
  23.     public Main()
  24.     {
  25.         this.InitializeComponent();
  26.     }
  27.  
  28.     private void button1_Click(object sender, EventArgs e)
  29.     {
  30.         new Downloads().Show();
  31.     }
  32.  
  33.     private void button10_Click(object sender, EventArgs e)
  34.     {
  35.         Process.Start("MagicIV.exe");
  36.     }
  37.  
  38.     private void button2_Click(object sender, EventArgs e)
  39.     {
  40.         this.webBrowser1.Url = new Uri("http://www.almico.com/speedfan447.exe");
  41.         MessageBox.Show("Install speedfan and set it so that it automatically adjusts your cooling fan");
  42.     }
  43.  
  44.     private void button3_Click(object sender, EventArgs e)
  45.     {
  46.         new Credits().Show();
  47.     }
  48.  
  49.     private void button4_Click(object sender, EventArgs e)
  50.     {
  51.         Process.Start("http://www.gta4-mods.com/misc/no-intro-logos-f1814#download");
  52.         MessageBox.Show("Install based on the readme");
  53.     }
  54.  
  55.     private void button5_Click(object sender, EventArgs e)
  56.     {
  57.         this.webBrowser1.Url = new Uri("http://199.91.153.215/0d4d98rbbzvg/2iaiaqb97b2of2q/iCEnhancer2_1FINAL.zip");
  58.         MessageBox.Show("Extract it, read the readme and install");
  59.     }
  60.  
  61.     private void button6_Click(object sender, EventArgs e)
  62.     {
  63.         if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)
  64.         {
  65.             File.Copy("Contig.exe", Path.Combine(this.folderBrowserDialog1.SelectedPath, "Conitg.exe"));
  66.             Process.Start(Path.Combine(this.folderBrowserDialog1.SelectedPath, "Contig.exe"));
  67.             File.Delete(Path.Combine(this.folderBrowserDialog1.SelectedPath, "Contig.exe"));
  68.         }
  69.     }
  70.  
  71.     private void button7_Click(object sender, EventArgs e)
  72.     {
  73.         Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("GTA4_Super_Boost.iceconfig.ini");
  74.         File.Delete(Path.Combine(this.folderBrowserDialog1.SelectedPath, "iceconfig.ini"));
  75.         File.CreateText(Path.Combine(this.folderBrowserDialog1.SelectedPath, "iceconfig.ini")).Write(manifestResourceStream);
  76.         MessageBox.Show("Done!");
  77.     }
  78.  
  79.     private void button9_Click(object sender, EventArgs e)
  80.     {
  81.         if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)
  82.         {
  83.             string str = Path.Combine(this.folderBrowserDialog1.SelectedPath, @"common\shaders\win32_30_atidx10\");
  84.             string str2 = Path.Combine(this.folderBrowserDialog1.SelectedPath, @"common\shaders\win32_30_nv8\");
  85.             string[] files = Directory.GetFiles(Path.Combine(this.folderBrowserDialog1.SelectedPath, @"common\shaders\win32_30_atidx10\"));
  86.             for (int i = 0; i <= 0x59; i++)
  87.             {
  88.                 File.Copy(Path.Combine(str, files[i]), Path.Combine(str2, files[i]), true);
  89.             }
  90.             Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("GTA4_Super_Boost.commandline.txt");
  91.             File.CreateText(Path.Combine(this.folderBrowserDialog1.SelectedPath, "commandline.txt")).Write(manifestResourceStream);
  92.             MessageBox.Show("I also recommend that you disable the 'Clip Capture' setting in game options");
  93.             MessageBox.Show("Done!");
  94.         }
  95.     }
  96.  
  97.     protected override void Dispose(bool disposing)
  98.     {
  99.         if (disposing && (this.components != null))
  100.         {
  101.             this.components.Dispose();
  102.         }
  103.         base.Dispose(disposing);
  104.     }
  105.  
  106.     private void InitializeComponent()
  107.     {
  108.         ComponentResourceManager manager = new ComponentResourceManager(typeof(Main));
  109.         this.label1 = new Label();
  110.         this.button1 = new Button();
  111.         this.button2 = new Button();
  112.         this.label2 = new Label();
  113.         this.groupBox1 = new GroupBox();
  114.         this.button3 = new Button();
  115.         this.groupBox2 = new GroupBox();
  116.         this.groupBox3 = new GroupBox();
  117.         this.button7 = new Button();
  118.         this.button6 = new Button();
  119.         this.button4 = new Button();
  120.         this.button5 = new Button();
  121.         this.webBrowser1 = new WebBrowser();
  122.         this.button9 = new Button();
  123.         this.folderBrowserDialog1 = new FolderBrowserDialog();
  124.         this.button10 = new Button();
  125.         this.groupBox1.SuspendLayout();
  126.         this.groupBox2.SuspendLayout();
  127.         this.groupBox3.SuspendLayout();
  128.         base.SuspendLayout();
  129.         this.label1.AutoSize = true;
  130.         this.label1.Location = new Point(13, 13);
  131.         this.label1.Name = "label1";
  132.         this.label1.Size = new Size(0x105, 13);
  133.         this.label1.TabIndex = 0;
  134.         this.label1.Text = "Optimize GTA4 to run well on even Intel HD Graphics!";
  135.         this.button1.Location = new Point(8, 0x21);
  136.         this.button1.Name = "button1";
  137.         this.button1.Size = new Size(0xe7, 30);
  138.         this.button1.TabIndex = 1;
  139.         this.button1.Text = "Download All";
  140.         this.button1.UseVisualStyleBackColor = true;
  141.         this.button1.Click += new EventHandler(this.button1_Click);
  142.         this.button2.Location = new Point(6, 0x13);
  143.         this.button2.Name = "button2";
  144.         this.button2.Size = new Size(0x1e3, 0x3d);
  145.         this.button2.TabIndex = 2;
  146.         this.button2.Text = "Get Fan Speed Adjuster for Windows";
  147.         this.button2.UseVisualStyleBackColor = true;
  148.         this.button2.Click += new EventHandler(this.button2_Click);
  149.         this.label2.Location = new Point(12, 0x29);
  150.         this.label2.Name = "label2";
  151.         this.label2.Size = new Size(0x1f3, 0x1b);
  152.         this.label2.TabIndex = 3;
  153.         this.label2.Text = "This is a compilation of all the programs/add ons that I used to make GTA4 run on my Intel HD Graphics 3000 without frying it! Sorry but this can't automatically install everything";
  154.         this.groupBox1.Controls.Add(this.button9);
  155.         this.groupBox1.Controls.Add(this.button3);
  156.         this.groupBox1.Controls.Add(this.button1);
  157.         this.groupBox1.Location = new Point(15, 0x47);
  158.         this.groupBox1.Name = "groupBox1";
  159.         this.groupBox1.Size = new Size(0x1f0, 100);
  160.         this.groupBox1.TabIndex = 4;
  161.         this.groupBox1.TabStop = false;
  162.         this.groupBox1.Text = "The important stuff";
  163.         this.button3.Location = new Point(0xf5, 0x21);
  164.         this.button3.Name = "button3";
  165.         this.button3.Size = new Size(0xf5, 0x3d);
  166.         this.button3.TabIndex = 2;
  167.         this.button3.Text = "Credits";
  168.         this.button3.UseVisualStyleBackColor = true;
  169.         this.button3.Click += new EventHandler(this.button3_Click);
  170.         this.groupBox2.Controls.Add(this.button2);
  171.         this.groupBox2.Location = new Point(0x10, 0xb1);
  172.         this.groupBox2.Name = "groupBox2";
  173.         this.groupBox2.Size = new Size(0x1ef, 0x5d);
  174.         this.groupBox2.TabIndex = 5;
  175.         this.groupBox2.TabStop = false;
  176.         this.groupBox2.Text = "For Safety";
  177.         this.groupBox3.Controls.Add(this.button10);
  178.         this.groupBox3.Controls.Add(this.button5);
  179.         this.groupBox3.Controls.Add(this.button7);
  180.         this.groupBox3.Controls.Add(this.button6);
  181.         this.groupBox3.Controls.Add(this.button4);
  182.         this.groupBox3.Location = new Point(0x10, 0x114);
  183.         this.groupBox3.Name = "groupBox3";
  184.         this.groupBox3.Size = new Size(0x1ef, 0x9e);
  185.         this.groupBox3.TabIndex = 6;
  186.         this.groupBox3.TabStop = false;
  187.         this.groupBox3.Text = "Bonuses";
  188.         this.button7.Location = new Point(7, 0x3b);
  189.         this.button7.Name = "button7";
  190.         this.button7.Size = new Size(0xe7, 0x2f);
  191.         this.button7.TabIndex = 2;
  192.         this.button7.Text = "ICEnhancer 2.1 - Best settings for low end computers";
  193.         this.button7.UseVisualStyleBackColor = true;
  194.         this.button7.Click += new EventHandler(this.button7_Click);
  195.         this.button6.Location = new Point(0xf4, 20);
  196.         this.button6.Name = "button6";
  197.         this.button6.Size = new Size(0xf5, 0x21);
  198.         this.button6.TabIndex = 1;
  199.         this.button6.Text = "Defragment Folder";
  200.         this.button6.UseVisualStyleBackColor = true;
  201.         this.button6.Click += new EventHandler(this.button6_Click);
  202.         this.button4.Location = new Point(7, 20);
  203.         this.button4.Name = "button4";
  204.         this.button4.Size = new Size(0xe7, 0x21);
  205.         this.button4.TabIndex = 0;
  206.         this.button4.Text = "Remove Logo's";
  207.         this.button4.UseVisualStyleBackColor = true;
  208.         this.button4.Click += new EventHandler(this.button4_Click);
  209.         this.button5.Location = new Point(0xf4, 0x3b);
  210.         this.button5.Name = "button5";
  211.         this.button5.Size = new Size(0xf5, 0x2f);
  212.         this.button5.TabIndex = 4;
  213.         this.button5.Text = "ICEnhancer 2.1";
  214.         this.button5.UseVisualStyleBackColor = true;
  215.         this.button5.Click += new EventHandler(this.button5_Click);
  216.         this.webBrowser1.Location = new Point(0x9d, 20);
  217.         this.webBrowser1.MinimumSize = new Size(20, 20);
  218.         this.webBrowser1.Name = "webBrowser1";
  219.         this.webBrowser1.Size = new Size(250, 250);
  220.         this.webBrowser1.TabIndex = 3;
  221.         this.webBrowser1.Visible = false;
  222.         this.button9.Location = new Point(8, 0x40);
  223.         this.button9.Name = "button9";
  224.         this.button9.Size = new Size(0xe7, 30);
  225.         this.button9.TabIndex = 3;
  226.         this.button9.Text = "Install (only commandline and shader patch)";
  227.         this.button9.UseVisualStyleBackColor = true;
  228.         this.button9.Click += new EventHandler(this.button9_Click);
  229.         this.folderBrowserDialog1.Description = "Where is GTA 4 installed?";
  230.         this.folderBrowserDialog1.RootFolder = Environment.SpecialFolder.MyComputer;
  231.         this.folderBrowserDialog1.SelectedPath = @"C:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV";
  232.         this.folderBrowserDialog1.ShowNewFolderButton = false;
  233.         this.button10.Location = new Point(7, 0x70);
  234.         this.button10.Name = "button10";
  235.         this.button10.Size = new Size(0x1e2, 40);
  236.         this.button10.TabIndex = 5;
  237.         this.button10.Text = "Enable modding";
  238.         this.button10.UseVisualStyleBackColor = true;
  239.         this.button10.Click += new EventHandler(this.button10_Click);
  240.         base.AutoScaleDimensions = new SizeF(6f, 13f);
  241.         base.AutoScaleMode = AutoScaleMode.Font;
  242.         base.ClientSize = new Size(0x20b, 0x1be);
  243.         base.Controls.Add(this.groupBox3);
  244.         base.Controls.Add(this.groupBox2);
  245.         base.Controls.Add(this.groupBox1);
  246.         base.Controls.Add(this.label2);
  247.         base.Controls.Add(this.label1);
  248.         base.Controls.Add(this.webBrowser1);
  249.         base.Icon = (Icon) manager.GetObject("$this.Icon");
  250.         base.Name = "Main";
  251.         this.Text = "GTA4 Super Boost by hgoel0974";
  252.         this.groupBox1.ResumeLayout(false);
  253.         this.groupBox2.ResumeLayout(false);
  254.         this.groupBox3.ResumeLayout(false);
  255.         base.ResumeLayout(false);
  256.         base.PerformLayout();
  257.     }
  258. }
  259.  
  260.  
  261. Collapse Methods
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement