Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main : Form
- {
- // Fields
- private Button button1;
- private Button button10;
- private Button button2;
- private Button button3;
- private Button button4;
- private Button button5;
- private Button button6;
- private Button button7;
- private Button button9;
- private IContainer components;
- private FolderBrowserDialog folderBrowserDialog1;
- private GroupBox groupBox1;
- private GroupBox groupBox2;
- private GroupBox groupBox3;
- private Label label1;
- private Label label2;
- private WebBrowser webBrowser1;
- // Methods
- public Main()
- {
- this.InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- new Downloads().Show();
- }
- private void button10_Click(object sender, EventArgs e)
- {
- Process.Start("MagicIV.exe");
- }
- private void button2_Click(object sender, EventArgs e)
- {
- this.webBrowser1.Url = new Uri("http://www.almico.com/speedfan447.exe");
- MessageBox.Show("Install speedfan and set it so that it automatically adjusts your cooling fan");
- }
- private void button3_Click(object sender, EventArgs e)
- {
- new Credits().Show();
- }
- private void button4_Click(object sender, EventArgs e)
- {
- Process.Start("http://www.gta4-mods.com/misc/no-intro-logos-f1814#download");
- MessageBox.Show("Install based on the readme");
- }
- private void button5_Click(object sender, EventArgs e)
- {
- this.webBrowser1.Url = new Uri("http://199.91.153.215/0d4d98rbbzvg/2iaiaqb97b2of2q/iCEnhancer2_1FINAL.zip");
- MessageBox.Show("Extract it, read the readme and install");
- }
- private void button6_Click(object sender, EventArgs e)
- {
- if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)
- {
- File.Copy("Contig.exe", Path.Combine(this.folderBrowserDialog1.SelectedPath, "Conitg.exe"));
- Process.Start(Path.Combine(this.folderBrowserDialog1.SelectedPath, "Contig.exe"));
- File.Delete(Path.Combine(this.folderBrowserDialog1.SelectedPath, "Contig.exe"));
- }
- }
- private void button7_Click(object sender, EventArgs e)
- {
- Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("GTA4_Super_Boost.iceconfig.ini");
- File.Delete(Path.Combine(this.folderBrowserDialog1.SelectedPath, "iceconfig.ini"));
- File.CreateText(Path.Combine(this.folderBrowserDialog1.SelectedPath, "iceconfig.ini")).Write(manifestResourceStream);
- MessageBox.Show("Done!");
- }
- private void button9_Click(object sender, EventArgs e)
- {
- if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)
- {
- string str = Path.Combine(this.folderBrowserDialog1.SelectedPath, @"common\shaders\win32_30_atidx10\");
- string str2 = Path.Combine(this.folderBrowserDialog1.SelectedPath, @"common\shaders\win32_30_nv8\");
- string[] files = Directory.GetFiles(Path.Combine(this.folderBrowserDialog1.SelectedPath, @"common\shaders\win32_30_atidx10\"));
- for (int i = 0; i <= 0x59; i++)
- {
- File.Copy(Path.Combine(str, files[i]), Path.Combine(str2, files[i]), true);
- }
- Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("GTA4_Super_Boost.commandline.txt");
- File.CreateText(Path.Combine(this.folderBrowserDialog1.SelectedPath, "commandline.txt")).Write(manifestResourceStream);
- MessageBox.Show("I also recommend that you disable the 'Clip Capture' setting in game options");
- MessageBox.Show("Done!");
- }
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && (this.components != null))
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- ComponentResourceManager manager = new ComponentResourceManager(typeof(Main));
- this.label1 = new Label();
- this.button1 = new Button();
- this.button2 = new Button();
- this.label2 = new Label();
- this.groupBox1 = new GroupBox();
- this.button3 = new Button();
- this.groupBox2 = new GroupBox();
- this.groupBox3 = new GroupBox();
- this.button7 = new Button();
- this.button6 = new Button();
- this.button4 = new Button();
- this.button5 = new Button();
- this.webBrowser1 = new WebBrowser();
- this.button9 = new Button();
- this.folderBrowserDialog1 = new FolderBrowserDialog();
- this.button10 = new Button();
- this.groupBox1.SuspendLayout();
- this.groupBox2.SuspendLayout();
- this.groupBox3.SuspendLayout();
- base.SuspendLayout();
- this.label1.AutoSize = true;
- this.label1.Location = new Point(13, 13);
- this.label1.Name = "label1";
- this.label1.Size = new Size(0x105, 13);
- this.label1.TabIndex = 0;
- this.label1.Text = "Optimize GTA4 to run well on even Intel HD Graphics!";
- this.button1.Location = new Point(8, 0x21);
- this.button1.Name = "button1";
- this.button1.Size = new Size(0xe7, 30);
- this.button1.TabIndex = 1;
- this.button1.Text = "Download All";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new EventHandler(this.button1_Click);
- this.button2.Location = new Point(6, 0x13);
- this.button2.Name = "button2";
- this.button2.Size = new Size(0x1e3, 0x3d);
- this.button2.TabIndex = 2;
- this.button2.Text = "Get Fan Speed Adjuster for Windows";
- this.button2.UseVisualStyleBackColor = true;
- this.button2.Click += new EventHandler(this.button2_Click);
- this.label2.Location = new Point(12, 0x29);
- this.label2.Name = "label2";
- this.label2.Size = new Size(0x1f3, 0x1b);
- this.label2.TabIndex = 3;
- 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";
- this.groupBox1.Controls.Add(this.button9);
- this.groupBox1.Controls.Add(this.button3);
- this.groupBox1.Controls.Add(this.button1);
- this.groupBox1.Location = new Point(15, 0x47);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new Size(0x1f0, 100);
- this.groupBox1.TabIndex = 4;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "The important stuff";
- this.button3.Location = new Point(0xf5, 0x21);
- this.button3.Name = "button3";
- this.button3.Size = new Size(0xf5, 0x3d);
- this.button3.TabIndex = 2;
- this.button3.Text = "Credits";
- this.button3.UseVisualStyleBackColor = true;
- this.button3.Click += new EventHandler(this.button3_Click);
- this.groupBox2.Controls.Add(this.button2);
- this.groupBox2.Location = new Point(0x10, 0xb1);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new Size(0x1ef, 0x5d);
- this.groupBox2.TabIndex = 5;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "For Safety";
- this.groupBox3.Controls.Add(this.button10);
- this.groupBox3.Controls.Add(this.button5);
- this.groupBox3.Controls.Add(this.button7);
- this.groupBox3.Controls.Add(this.button6);
- this.groupBox3.Controls.Add(this.button4);
- this.groupBox3.Location = new Point(0x10, 0x114);
- this.groupBox3.Name = "groupBox3";
- this.groupBox3.Size = new Size(0x1ef, 0x9e);
- this.groupBox3.TabIndex = 6;
- this.groupBox3.TabStop = false;
- this.groupBox3.Text = "Bonuses";
- this.button7.Location = new Point(7, 0x3b);
- this.button7.Name = "button7";
- this.button7.Size = new Size(0xe7, 0x2f);
- this.button7.TabIndex = 2;
- this.button7.Text = "ICEnhancer 2.1 - Best settings for low end computers";
- this.button7.UseVisualStyleBackColor = true;
- this.button7.Click += new EventHandler(this.button7_Click);
- this.button6.Location = new Point(0xf4, 20);
- this.button6.Name = "button6";
- this.button6.Size = new Size(0xf5, 0x21);
- this.button6.TabIndex = 1;
- this.button6.Text = "Defragment Folder";
- this.button6.UseVisualStyleBackColor = true;
- this.button6.Click += new EventHandler(this.button6_Click);
- this.button4.Location = new Point(7, 20);
- this.button4.Name = "button4";
- this.button4.Size = new Size(0xe7, 0x21);
- this.button4.TabIndex = 0;
- this.button4.Text = "Remove Logo's";
- this.button4.UseVisualStyleBackColor = true;
- this.button4.Click += new EventHandler(this.button4_Click);
- this.button5.Location = new Point(0xf4, 0x3b);
- this.button5.Name = "button5";
- this.button5.Size = new Size(0xf5, 0x2f);
- this.button5.TabIndex = 4;
- this.button5.Text = "ICEnhancer 2.1";
- this.button5.UseVisualStyleBackColor = true;
- this.button5.Click += new EventHandler(this.button5_Click);
- this.webBrowser1.Location = new Point(0x9d, 20);
- this.webBrowser1.MinimumSize = new Size(20, 20);
- this.webBrowser1.Name = "webBrowser1";
- this.webBrowser1.Size = new Size(250, 250);
- this.webBrowser1.TabIndex = 3;
- this.webBrowser1.Visible = false;
- this.button9.Location = new Point(8, 0x40);
- this.button9.Name = "button9";
- this.button9.Size = new Size(0xe7, 30);
- this.button9.TabIndex = 3;
- this.button9.Text = "Install (only commandline and shader patch)";
- this.button9.UseVisualStyleBackColor = true;
- this.button9.Click += new EventHandler(this.button9_Click);
- this.folderBrowserDialog1.Description = "Where is GTA 4 installed?";
- this.folderBrowserDialog1.RootFolder = Environment.SpecialFolder.MyComputer;
- this.folderBrowserDialog1.SelectedPath = @"C:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV";
- this.folderBrowserDialog1.ShowNewFolderButton = false;
- this.button10.Location = new Point(7, 0x70);
- this.button10.Name = "button10";
- this.button10.Size = new Size(0x1e2, 40);
- this.button10.TabIndex = 5;
- this.button10.Text = "Enable modding";
- this.button10.UseVisualStyleBackColor = true;
- this.button10.Click += new EventHandler(this.button10_Click);
- base.AutoScaleDimensions = new SizeF(6f, 13f);
- base.AutoScaleMode = AutoScaleMode.Font;
- base.ClientSize = new Size(0x20b, 0x1be);
- base.Controls.Add(this.groupBox3);
- base.Controls.Add(this.groupBox2);
- base.Controls.Add(this.groupBox1);
- base.Controls.Add(this.label2);
- base.Controls.Add(this.label1);
- base.Controls.Add(this.webBrowser1);
- base.Icon = (Icon) manager.GetObject("$this.Icon");
- base.Name = "Main";
- this.Text = "GTA4 Super Boost by hgoel0974";
- this.groupBox1.ResumeLayout(false);
- this.groupBox2.ResumeLayout(false);
- this.groupBox3.ResumeLayout(false);
- base.ResumeLayout(false);
- base.PerformLayout();
- }
- }
- Collapse Methods
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement