From 30e1fbf1e242453af7af815f5ba7694214d65afe Mon Sep 17 00:00:00 2001 From: cyber Date: Fri, 23 Sep 2022 14:21:50 -0400 Subject: [PATCH] Watch Dog Panic Attack * Fixed Issue with Watch Dog not Closing Application * Increase allowance on watch dog timer time. --- .gitignore | 1 + wtfpsbooster/Form1.Designer.vb | 115 ++++++++----------- wtfpsbooster/Form1.vb | 24 ++-- wtfpsbooster/My Project/AssemblyInfo.vb | 6 +- wtfpsbooster/My Project/app.manifest | 2 +- wtfpsbooster/WatchDog_Settings.Designer.vb | 43 +++---- wtfpsbooster/splash.Designer.vb | 107 +++++++++++++---- wtfpsbooster/splash.resx | 8 ++ wtfpsbooster/splash.vb | 25 ++++ wtfpsbooster/wtfpsbooster.vbproj | 22 ++-- wtfpsbooster/wtfpsbooster.vbproj.user | 5 +- wtfpsbooster/wtfpsbooster_3_TemporaryKey.pfx | Bin 0 -> 1716 bytes 12 files changed, 213 insertions(+), 145 deletions(-) create mode 100644 wtfpsbooster/wtfpsbooster_3_TemporaryKey.pfx diff --git a/.gitignore b/.gitignore index 29a7ad5..0ca7d6f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ wtfpsbooster/bin/* wtfpsbooster/obj/* wtfpsbooster/obj/x86/* +wtfpsbooster/Builds/* diff --git a/wtfpsbooster/Form1.Designer.vb b/wtfpsbooster/Form1.Designer.vb index f9ebaeb..a48fc74 100644 --- a/wtfpsbooster/Form1.Designer.vb +++ b/wtfpsbooster/Form1.Designer.vb @@ -64,11 +64,9 @@ Partial Class Form1 ' Me.GroupBox1.BackColor = System.Drawing.Color.SkyBlue Me.GroupBox1.Dock = System.Windows.Forms.DockStyle.Fill - Me.GroupBox1.Location = New System.Drawing.Point(4, 5) - Me.GroupBox1.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.GroupBox1.Location = New System.Drawing.Point(3, 3) Me.GroupBox1.Name = "GroupBox1" - Me.GroupBox1.Padding = New System.Windows.Forms.Padding(4, 5, 4, 5) - Me.GroupBox1.Size = New System.Drawing.Size(1110, 495) + Me.GroupBox1.Size = New System.Drawing.Size(737, 327) Me.GroupBox1.TabIndex = 3 Me.GroupBox1.TabStop = False Me.GroupBox1.Text = "Boost or Restore" @@ -78,13 +76,12 @@ Partial Class Form1 Me.InfoBox.BackColor = System.Drawing.Color.Linen Me.InfoBox.Dock = System.Windows.Forms.DockStyle.Fill Me.InfoBox.Font = New System.Drawing.Font("Microsoft Sans Serif", 13.0!) - Me.InfoBox.Location = New System.Drawing.Point(0, 231) - Me.InfoBox.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.InfoBox.Location = New System.Drawing.Point(0, 153) Me.InfoBox.Multiline = True Me.InfoBox.Name = "InfoBox" Me.InfoBox.ReadOnly = True Me.InfoBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical - Me.InfoBox.Size = New System.Drawing.Size(483, 500) + Me.InfoBox.Size = New System.Drawing.Size(322, 334) Me.InfoBox.TabIndex = 9 Me.InfoBox.Text = resources.GetString("InfoBox.Text") ' @@ -99,9 +96,8 @@ Partial Class Form1 Me.BoostBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.BoostBtn.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Bold) Me.BoostBtn.Location = New System.Drawing.Point(0, 0) - Me.BoostBtn.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) Me.BoostBtn.Name = "BoostBtn" - Me.BoostBtn.Size = New System.Drawing.Size(483, 77) + Me.BoostBtn.Size = New System.Drawing.Size(322, 51) Me.BoostBtn.TabIndex = 8 Me.BoostBtn.Text = "Re-Boost" Me.BoostBtn.UseVisualStyleBackColor = False @@ -112,20 +108,18 @@ Partial Class Form1 Me.wtstatus.AutoSize = True Me.wtstatus.Font = New System.Drawing.Font("Microsoft Sans Serif", 24.0!, System.Drawing.FontStyle.Bold) Me.wtstatus.ForeColor = System.Drawing.SystemColors.ControlText - Me.wtstatus.Location = New System.Drawing.Point(492, 663) - Me.wtstatus.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) + Me.wtstatus.Location = New System.Drawing.Point(328, 442) Me.wtstatus.Name = "wtstatus" - Me.wtstatus.Size = New System.Drawing.Size(654, 55) + Me.wtstatus.Size = New System.Drawing.Size(449, 37) Me.wtstatus.TabIndex = 6 Me.wtstatus.Text = "Checking for War Thunder..." ' 'pcstatus_txt ' Me.pcstatus_txt.Font = New System.Drawing.Font("Microsoft Sans Serif", 24.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.pcstatus_txt.Location = New System.Drawing.Point(492, 14) - Me.pcstatus_txt.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) + Me.pcstatus_txt.Location = New System.Drawing.Point(328, 9) Me.pcstatus_txt.Name = "pcstatus_txt" - Me.pcstatus_txt.Size = New System.Drawing.Size(938, 440) + Me.pcstatus_txt.Size = New System.Drawing.Size(625, 293) Me.pcstatus_txt.TabIndex = 6 Me.pcstatus_txt.Text = "PC Status: Normal" ' @@ -139,10 +133,9 @@ Partial Class Form1 Me.RestoreBtn.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(255, Byte), Integer)) Me.RestoreBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.RestoreBtn.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.RestoreBtn.Location = New System.Drawing.Point(0, 154) - Me.RestoreBtn.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.RestoreBtn.Location = New System.Drawing.Point(0, 102) Me.RestoreBtn.Name = "RestoreBtn" - Me.RestoreBtn.Size = New System.Drawing.Size(483, 77) + Me.RestoreBtn.Size = New System.Drawing.Size(322, 51) Me.RestoreBtn.TabIndex = 4 Me.RestoreBtn.Text = "Remove Boost" Me.RestoreBtn.UseVisualStyleBackColor = False @@ -151,22 +144,20 @@ Partial Class Form1 ' Me.MainControlPanel.Controls.Add(Me.TabPage1) Me.MainControlPanel.Controls.Add(Me.TabPage2) - Me.MainControlPanel.Location = New System.Drawing.Point(1460, 826) - Me.MainControlPanel.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.MainControlPanel.Location = New System.Drawing.Point(973, 551) Me.MainControlPanel.Name = "MainControlPanel" Me.MainControlPanel.SelectedIndex = 0 - Me.MainControlPanel.Size = New System.Drawing.Size(1126, 538) + Me.MainControlPanel.Size = New System.Drawing.Size(751, 359) Me.MainControlPanel.TabIndex = 5 Me.MainControlPanel.Visible = False ' 'TabPage1 ' Me.TabPage1.Controls.Add(Me.GroupBox1) - Me.TabPage1.Location = New System.Drawing.Point(4, 29) - Me.TabPage1.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.TabPage1.Location = New System.Drawing.Point(4, 22) Me.TabPage1.Name = "TabPage1" - Me.TabPage1.Padding = New System.Windows.Forms.Padding(4, 5, 4, 5) - Me.TabPage1.Size = New System.Drawing.Size(1118, 505) + Me.TabPage1.Padding = New System.Windows.Forms.Padding(3, 3, 3, 3) + Me.TabPage1.Size = New System.Drawing.Size(743, 333) Me.TabPage1.TabIndex = 0 Me.TabPage1.Text = "Main Settings" Me.TabPage1.UseVisualStyleBackColor = True @@ -175,11 +166,10 @@ Partial Class Form1 ' Me.TabPage2.Controls.Add(Me.GroupBox4) Me.TabPage2.Controls.Add(Me.GroupBox3) - Me.TabPage2.Location = New System.Drawing.Point(4, 29) - Me.TabPage2.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.TabPage2.Location = New System.Drawing.Point(4, 22) Me.TabPage2.Name = "TabPage2" - Me.TabPage2.Padding = New System.Windows.Forms.Padding(4, 5, 4, 5) - Me.TabPage2.Size = New System.Drawing.Size(1118, 505) + Me.TabPage2.Padding = New System.Windows.Forms.Padding(3, 3, 3, 3) + Me.TabPage2.Size = New System.Drawing.Size(743, 333) Me.TabPage2.TabIndex = 1 Me.TabPage2.Text = "Advanced Settings" Me.TabPage2.UseVisualStyleBackColor = True @@ -190,11 +180,9 @@ Partial Class Form1 Me.GroupBox4.Controls.Add(Me.pclist) Me.GroupBox4.Controls.Add(Me.rfspcl) Me.GroupBox4.Dock = System.Windows.Forms.DockStyle.Fill - Me.GroupBox4.Location = New System.Drawing.Point(4, 182) - Me.GroupBox4.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.GroupBox4.Location = New System.Drawing.Point(3, 121) Me.GroupBox4.Name = "GroupBox4" - Me.GroupBox4.Padding = New System.Windows.Forms.Padding(4, 5, 4, 5) - Me.GroupBox4.Size = New System.Drawing.Size(1110, 318) + Me.GroupBox4.Size = New System.Drawing.Size(737, 209) Me.GroupBox4.TabIndex = 2 Me.GroupBox4.TabStop = False Me.GroupBox4.Text = "Select Which Programs to force onto the cores chosen." @@ -204,20 +192,18 @@ Partial Class Form1 Me.pclist.BackColor = System.Drawing.Color.SkyBlue Me.pclist.Dock = System.Windows.Forms.DockStyle.Fill Me.pclist.FormattingEnabled = True - Me.pclist.Location = New System.Drawing.Point(4, 24) - Me.pclist.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.pclist.Location = New System.Drawing.Point(3, 16) Me.pclist.Name = "pclist" - Me.pclist.Size = New System.Drawing.Size(1102, 254) + Me.pclist.Size = New System.Drawing.Size(731, 167) Me.pclist.Sorted = True Me.pclist.TabIndex = 0 ' 'rfspcl ' Me.rfspcl.Dock = System.Windows.Forms.DockStyle.Bottom - Me.rfspcl.Location = New System.Drawing.Point(4, 278) - Me.rfspcl.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.rfspcl.Location = New System.Drawing.Point(3, 183) Me.rfspcl.Name = "rfspcl" - Me.rfspcl.Size = New System.Drawing.Size(1102, 35) + Me.rfspcl.Size = New System.Drawing.Size(731, 23) Me.rfspcl.TabIndex = 1 Me.rfspcl.Text = "Refresh Process List" Me.rfspcl.UseVisualStyleBackColor = True @@ -228,11 +214,9 @@ Partial Class Form1 Me.GroupBox3.Controls.Add(Me.cs) Me.GroupBox3.Controls.Add(Me.fcp2) Me.GroupBox3.Dock = System.Windows.Forms.DockStyle.Top - Me.GroupBox3.Location = New System.Drawing.Point(4, 5) - Me.GroupBox3.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.GroupBox3.Location = New System.Drawing.Point(3, 3) Me.GroupBox3.Name = "GroupBox3" - Me.GroupBox3.Padding = New System.Windows.Forms.Padding(4, 5, 4, 5) - Me.GroupBox3.Size = New System.Drawing.Size(1110, 177) + Me.GroupBox3.Size = New System.Drawing.Size(737, 118) Me.GroupBox3.TabIndex = 1 Me.GroupBox3.TabStop = False Me.GroupBox3.Text = "Select Cores to Use" @@ -242,20 +226,18 @@ Partial Class Form1 Me.cs.BackColor = System.Drawing.Color.SkyBlue Me.cs.Dock = System.Windows.Forms.DockStyle.Fill Me.cs.FormattingEnabled = True - Me.cs.Location = New System.Drawing.Point(4, 24) - Me.cs.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.cs.Location = New System.Drawing.Point(3, 16) Me.cs.MultiColumn = True Me.cs.Name = "cs" - Me.cs.Size = New System.Drawing.Size(1102, 113) + Me.cs.Size = New System.Drawing.Size(731, 76) Me.cs.TabIndex = 0 ' 'fcp2 ' Me.fcp2.Dock = System.Windows.Forms.DockStyle.Bottom - Me.fcp2.Location = New System.Drawing.Point(4, 137) - Me.fcp2.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.fcp2.Location = New System.Drawing.Point(3, 92) Me.fcp2.Name = "fcp2" - Me.fcp2.Size = New System.Drawing.Size(1102, 35) + Me.fcp2.Size = New System.Drawing.Size(731, 23) Me.fcp2.TabIndex = 1 Me.fcp2.Text = "Force Checked Processes" Me.fcp2.UseVisualStyleBackColor = True @@ -281,9 +263,8 @@ Partial Class Form1 Me.LeftPanel.Controls.Add(Me.BoostBtn) Me.LeftPanel.Dock = System.Windows.Forms.DockStyle.Left Me.LeftPanel.Location = New System.Drawing.Point(0, 0) - Me.LeftPanel.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) Me.LeftPanel.Name = "LeftPanel" - Me.LeftPanel.Size = New System.Drawing.Size(483, 731) + Me.LeftPanel.Size = New System.Drawing.Size(322, 487) Me.LeftPanel.TabIndex = 6 ' 'ExtraBoost @@ -296,10 +277,9 @@ Partial Class Form1 Me.ExtraBoost.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(255, Byte), Integer)) Me.ExtraBoost.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.ExtraBoost.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Bold) - Me.ExtraBoost.Location = New System.Drawing.Point(0, 77) - Me.ExtraBoost.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.ExtraBoost.Location = New System.Drawing.Point(0, 51) Me.ExtraBoost.Name = "ExtraBoost" - Me.ExtraBoost.Size = New System.Drawing.Size(483, 77) + Me.ExtraBoost.Size = New System.Drawing.Size(322, 51) Me.ExtraBoost.TabIndex = 10 Me.ExtraBoost.Text = "Extra Boost" Me.ExtraBoost.UseVisualStyleBackColor = False @@ -314,10 +294,9 @@ Partial Class Form1 Me.Button3.FlatAppearance.BorderSize = 2 Me.Button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button3.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Bold) - Me.Button3.Location = New System.Drawing.Point(1498, 0) - Me.Button3.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.Button3.Location = New System.Drawing.Point(999, 0) Me.Button3.Name = "Button3" - Me.Button3.Size = New System.Drawing.Size(49, 47) + Me.Button3.Size = New System.Drawing.Size(39, 38) Me.Button3.TabIndex = 7 Me.Button3.Text = "X" Me.Button3.TextAlign = System.Drawing.ContentAlignment.TopCenter @@ -332,10 +311,9 @@ Partial Class Form1 Me.WatchDogTxt.AutoSize = True Me.WatchDogTxt.Font = New System.Drawing.Font("Microsoft Sans Serif", 24.0!, System.Drawing.FontStyle.Bold) Me.WatchDogTxt.ForeColor = System.Drawing.SystemColors.ControlText - Me.WatchDogTxt.Location = New System.Drawing.Point(572, 603) - Me.WatchDogTxt.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) + Me.WatchDogTxt.Location = New System.Drawing.Point(381, 402) Me.WatchDogTxt.Name = "WatchDogTxt" - Me.WatchDogTxt.Size = New System.Drawing.Size(316, 55) + Me.WatchDogTxt.Size = New System.Drawing.Size(217, 37) Me.WatchDogTxt.TabIndex = 6 Me.WatchDogTxt.Text = "Watch Dog: -" ' @@ -348,10 +326,9 @@ Partial Class Form1 Me.Button1.FlatAppearance.BorderSize = 2 Me.Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button1.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Bold) - Me.Button1.Location = New System.Drawing.Point(1438, 0) - Me.Button1.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.Button1.Location = New System.Drawing.Point(959, 0) Me.Button1.Name = "Button1" - Me.Button1.Size = New System.Drawing.Size(46, 47) + Me.Button1.Size = New System.Drawing.Size(35, 38) Me.Button1.TabIndex = 8 Me.Button1.Text = "_" Me.Button1.TextAlign = System.Drawing.ContentAlignment.TopCenter @@ -360,10 +337,9 @@ Partial Class Form1 'PictureBox1 ' Me.PictureBox1.Image = Global.wtfpsbooster.My.Resources.Resources.gearcog - Me.PictureBox1.Location = New System.Drawing.Point(502, 603) - Me.PictureBox1.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.PictureBox1.Location = New System.Drawing.Point(335, 402) Me.PictureBox1.Name = "PictureBox1" - Me.PictureBox1.Size = New System.Drawing.Size(60, 55) + Me.PictureBox1.Size = New System.Drawing.Size(40, 37) Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom Me.PictureBox1.TabIndex = 9 Me.PictureBox1.TabStop = False @@ -377,10 +353,10 @@ Partial Class Form1 ' 'Form1 ' - Me.AutoScaleDimensions = New System.Drawing.SizeF(144.0!, 144.0!) + Me.AutoScaleDimensions = New System.Drawing.SizeF(96.0!, 96.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi Me.BackColor = System.Drawing.SystemColors.MenuHighlight - Me.ClientSize = New System.Drawing.Size(1556, 731) + Me.ClientSize = New System.Drawing.Size(1037, 487) Me.Controls.Add(Me.PictureBox1) Me.Controls.Add(Me.Button1) Me.Controls.Add(Me.Button3) @@ -391,9 +367,8 @@ Partial Class Form1 Me.Controls.Add(Me.pcstatus_txt) Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) - Me.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) Me.MaximizeBox = False - Me.MinimumSize = New System.Drawing.Size(1148, 506) + Me.MinimumSize = New System.Drawing.Size(765, 337) Me.Name = "Form1" Me.Opacity = 0.95R Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen diff --git a/wtfpsbooster/Form1.vb b/wtfpsbooster/Form1.vb index 1ef435c..8168c9a 100644 --- a/wtfpsbooster/Form1.vb +++ b/wtfpsbooster/Form1.vb @@ -45,14 +45,19 @@ Public Class Form1 ' Me.KeyPreview = True 'End Sub - ' ---------------------------------- ' Use this form loading for code ' ---------------------------------- Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load - Me.KeyPreview = True + splash.ShowDialog() + + If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) = False Then + MessageBox.Show("Tried to sneaky huh? Well that doesn't work. Please run as admin.") + Application.Exit() + End If + corecount = 0 While corecount <= System.Environment.ProcessorCount.ToString - 1 corecount += 1 @@ -147,10 +152,6 @@ Public Class Form1 Try ' Exclusion List BoostWorker.ReportProgress(67, "Modifying System" & vbNewLine & "Please don't exit the app.") - 'If proc.ToString.Contains("aces" Or "launcher" Or "explorer" Or "wtfpsbooster" Or "EasyAntiCheat" Or "audiodg" Or "eac_launcher") Then - ' proc.ProcessorAffinity = New IntPtr(n - 1) - 'End If - ' Compress into one line. If proc.ToString.Contains("aces") Then proc.ProcessorAffinity = New IntPtr(n - 1) End If @@ -170,10 +171,6 @@ Public Class Form1 proc.ProcessorAffinity = New IntPtr(n - 1) End If If ExBoost = False Then - 'If proc.ToString.Contains("Discord" Or "ts3client_win64" Or "GameOverlayUI" Or "Steam" Or "SteamService" Or "steamwebhelper" Or "Dxtory" Or "Dxtory64" Or "nvcontainer" Or "NVDisplay.Container" Or "NVIDIA RTX Voice" Or "NVIDIA Share" Or "nvsphelper64" Or "voicemeter" Or "voicemeter8" Or "conhost") Then - ' proc.ProcessorAffinity = New IntPtr(n - 1) - 'End If - '' compress into one line If proc.ToString.Contains("ts3client_win64") Then proc.ProcessorAffinity = New IntPtr(n - 1) End If @@ -418,12 +415,12 @@ Public Class Form1 If proc.Responding = False Then ' attempt to kill the process - 'proc.Kill() + proc.Kill() If ExBoost = True Then - MessageBox.Show("Seems like War Thunder had a Panic Attack, I forced it closed. It also seems like the extra boost isnt working out for your pc, please disable.") + MessageBox.Show("Seems like War Thunder had a Panic Attack, I forced it closed. It also seems like the extra boost was ticked, try again with out extra boost. IF problem still exists please contact me on reddit [user/cyb3rofficial] or github [github.com/cyberofficial]. Possible fix: Try increasing the watch dog timer.") Else - MessageBox.Show("Seems like War Thunder had a Panic Attack, I forced it closed.") + MessageBox.Show("Seems like War Thunder had a Panic Attack, I forced it closed. Possible fix: Try increasing the watch dog timer.") End If End If End If @@ -440,5 +437,4 @@ Public Class Form1 Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click WatchDog_Settings.ShowDialog() End Sub - End Class diff --git a/wtfpsbooster/My Project/AssemblyInfo.vb b/wtfpsbooster/My Project/AssemblyInfo.vb index 4255669..3bf61b8 100644 --- a/wtfpsbooster/My Project/AssemblyInfo.vb +++ b/wtfpsbooster/My Project/AssemblyInfo.vb @@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices - + @@ -31,7 +31,7 @@ Imports System.Runtime.InteropServices ' by using the '*' as shown below: ' - - + + \ No newline at end of file diff --git a/wtfpsbooster/My Project/app.manifest b/wtfpsbooster/My Project/app.manifest index 3447f3a..0ed877a 100644 --- a/wtfpsbooster/My Project/app.manifest +++ b/wtfpsbooster/My Project/app.manifest @@ -16,7 +16,7 @@ If you want to utilize File and Registry Virtualization for backward compatibility then delete the requestedExecutionLevel node. --> - + diff --git a/wtfpsbooster/WatchDog_Settings.Designer.vb b/wtfpsbooster/WatchDog_Settings.Designer.vb index f482feb..0ad3cbf 100644 --- a/wtfpsbooster/WatchDog_Settings.Designer.vb +++ b/wtfpsbooster/WatchDog_Settings.Designer.vb @@ -36,10 +36,9 @@ Partial Class WatchDog_Settings ' Me.Label1.AutoSize = True Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 24.0!, System.Drawing.FontStyle.Bold) - Me.Label1.Location = New System.Drawing.Point(-6, -6) - Me.Label1.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) + Me.Label1.Location = New System.Drawing.Point(-4, -4) Me.Label1.Name = "Label1" - Me.Label1.Size = New System.Drawing.Size(466, 55) + Me.Label1.Size = New System.Drawing.Size(319, 37) Me.Label1.TabIndex = 0 Me.Label1.Text = "Watch Dog Settings" ' @@ -47,22 +46,20 @@ Partial Class WatchDog_Settings ' Me.Label2.AutoSize = True Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold) - Me.Label2.Location = New System.Drawing.Point(-2, 54) - Me.Label2.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) + Me.Label2.Location = New System.Drawing.Point(-1, 36) Me.Label2.Name = "Label2" - Me.Label2.Size = New System.Drawing.Size(545, 145) + Me.Label2.Size = New System.Drawing.Size(377, 100) Me.Label2.TabIndex = 1 Me.Label2.Text = resources.GetString("Label2.Text") ' 'WDS_Num ' Me.WDS_Num.Font = New System.Drawing.Font("Microsoft Sans Serif", 16.0!, System.Drawing.FontStyle.Bold) - Me.WDS_Num.Location = New System.Drawing.Point(216, 237) - Me.WDS_Num.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) - Me.WDS_Num.Maximum = New Decimal(New Integer() {60000, 0, 0, 0}) + Me.WDS_Num.Location = New System.Drawing.Point(144, 158) + Me.WDS_Num.Maximum = New Decimal(New Integer() {120000, 0, 0, 0}) Me.WDS_Num.Minimum = New Decimal(New Integer() {10000, 0, 0, 0}) Me.WDS_Num.Name = "WDS_Num" - Me.WDS_Num.Size = New System.Drawing.Size(170, 44) + Me.WDS_Num.Size = New System.Drawing.Size(113, 32) Me.WDS_Num.TabIndex = 2 Me.WDS_Num.Value = New Decimal(New Integer() {20000, 0, 0, 0}) ' @@ -70,14 +67,13 @@ Partial Class WatchDog_Settings ' Me.Label3.AutoSize = True Me.Label3.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Bold) - Me.Label3.Location = New System.Drawing.Point(18, 237) - Me.Label3.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) + Me.Label3.Location = New System.Drawing.Point(12, 158) Me.Label3.Name = "Label3" - Me.Label3.Size = New System.Drawing.Size(393, 150) + Me.Label3.Size = New System.Drawing.Size(294, 102) Me.Label3.TabIndex = 3 - Me.Label3.Text = "Watch Dog Clock" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "1 Second = 1000" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "Min: 10 Seconds | Max 60 Seconds" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "Anything over" & - " 60 is a sign of no return." & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "Default is 20 Seconds, Older PCs might" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "want to use" & - " 30/45 Seconds." + Me.Label3.Text = "Watch Dog Clock" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "1 Second = 1000" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "Min: 10 Seconds | Max 120 Seconds" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "Anything ove" & + "r 60 is a sign of no return." & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "Default is 20 Seconds, Older PCs might" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "want to us" & + "e 90/120 Seconds." ' 'Button1 ' @@ -89,10 +85,9 @@ Partial Class WatchDog_Settings Me.Button1.FlatAppearance.BorderSize = 2 Me.Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.Button1.Font = New System.Drawing.Font("Microsoft Sans Serif", 13.0!, System.Drawing.FontStyle.Bold) - Me.Button1.Location = New System.Drawing.Point(0, 436) - Me.Button1.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.Button1.Location = New System.Drawing.Point(0, 277) Me.Button1.Name = "Button1" - Me.Button1.Size = New System.Drawing.Size(568, 44) + Me.Button1.Size = New System.Drawing.Size(379, 36) Me.Button1.TabIndex = 4 Me.Button1.Text = "Save" Me.Button1.UseVisualStyleBackColor = False @@ -107,10 +102,9 @@ Partial Class WatchDog_Settings Me.wdgod_settings_exit_btn.FlatAppearance.BorderSize = 2 Me.wdgod_settings_exit_btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.wdgod_settings_exit_btn.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Bold) - Me.wdgod_settings_exit_btn.Location = New System.Drawing.Point(0, 480) - Me.wdgod_settings_exit_btn.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) + Me.wdgod_settings_exit_btn.Location = New System.Drawing.Point(0, 313) Me.wdgod_settings_exit_btn.Name = "wdgod_settings_exit_btn" - Me.wdgod_settings_exit_btn.Size = New System.Drawing.Size(568, 47) + Me.wdgod_settings_exit_btn.Size = New System.Drawing.Size(379, 38) Me.wdgod_settings_exit_btn.TabIndex = 8 Me.wdgod_settings_exit_btn.Text = "Close without saving" Me.wdgod_settings_exit_btn.TextAlign = System.Drawing.ContentAlignment.TopCenter @@ -118,10 +112,10 @@ Partial Class WatchDog_Settings ' 'WatchDog_Settings ' - Me.AutoScaleDimensions = New System.Drawing.SizeF(144.0!, 144.0!) + Me.AutoScaleDimensions = New System.Drawing.SizeF(96.0!, 96.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi Me.BackColor = System.Drawing.SystemColors.ActiveCaption - Me.ClientSize = New System.Drawing.Size(568, 527) + Me.ClientSize = New System.Drawing.Size(379, 351) Me.Controls.Add(Me.Button1) Me.Controls.Add(Me.wdgod_settings_exit_btn) Me.Controls.Add(Me.WDS_Num) @@ -129,7 +123,6 @@ Partial Class WatchDog_Settings Me.Controls.Add(Me.Label1) Me.Controls.Add(Me.Label3) Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None - Me.Margin = New System.Windows.Forms.Padding(4, 5, 4, 5) Me.Name = "WatchDog_Settings" Me.Opacity = 0.9R Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent diff --git a/wtfpsbooster/splash.Designer.vb b/wtfpsbooster/splash.Designer.vb index 1ddbba4..5c3bde5 100644 --- a/wtfpsbooster/splash.Designer.vb +++ b/wtfpsbooster/splash.Designer.vb @@ -23,52 +23,113 @@ Partial Class splash _ Private Sub InitializeComponent() Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(splash)) - Me.PictureBox1 = New System.Windows.Forms.PictureBox() Me.Label1 = New System.Windows.Forms.Label() - CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit() + Me.isadmin_box = New System.Windows.Forms.CheckBox() + Me.iagree_box = New System.Windows.Forms.CheckBox() + Me.start_app = New System.Windows.Forms.Button() + Me.exit_app = New System.Windows.Forms.Button() + Me.TextBox1 = New System.Windows.Forms.TextBox() Me.SuspendLayout() ' - 'PictureBox1 - ' - Me.PictureBox1.Dock = System.Windows.Forms.DockStyle.Top - Me.PictureBox1.Image = Global.wtfpsbooster.My.Resources.Resources.War_Thunder_Logo - Me.PictureBox1.Location = New System.Drawing.Point(0, 0) - Me.PictureBox1.Name = "PictureBox1" - Me.PictureBox1.Size = New System.Drawing.Size(473, 237) - Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage - Me.PictureBox1.TabIndex = 0 - Me.PictureBox1.TabStop = False - ' 'Label1 ' Me.Label1.Dock = System.Windows.Forms.DockStyle.Bottom Me.Label1.Font = New System.Drawing.Font("Detente", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.Label1.Location = New System.Drawing.Point(0, 254) + Me.Label1.Location = New System.Drawing.Point(0, 449) Me.Label1.Name = "Label1" - Me.Label1.Size = New System.Drawing.Size(473, 60) + Me.Label1.Size = New System.Drawing.Size(436, 60) Me.Label1.TabIndex = 1 - Me.Label1.Text = "FPS Booster" + Me.Label1.Text = "WT FPS Booster" Me.Label1.TextAlign = System.Drawing.ContentAlignment.BottomCenter ' + 'isadmin_box + ' + Me.isadmin_box.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles) + Me.isadmin_box.AutoSize = True + Me.isadmin_box.Enabled = False + Me.isadmin_box.Font = New System.Drawing.Font("Microsoft Sans Serif", 13.0!) + Me.isadmin_box.ForeColor = System.Drawing.Color.SeaShell + Me.isadmin_box.Location = New System.Drawing.Point(226, 381) + Me.isadmin_box.Name = "isadmin_box" + Me.isadmin_box.Size = New System.Drawing.Size(79, 26) + Me.isadmin_box.TabIndex = 3 + Me.isadmin_box.Text = "Admin" + Me.isadmin_box.UseVisualStyleBackColor = True + ' + 'iagree_box + ' + Me.iagree_box.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles) + Me.iagree_box.AutoSize = True + Me.iagree_box.Font = New System.Drawing.Font("Microsoft Sans Serif", 13.0!) + Me.iagree_box.Location = New System.Drawing.Point(50, 381) + Me.iagree_box.Name = "iagree_box" + Me.iagree_box.Size = New System.Drawing.Size(89, 26) + Me.iagree_box.TabIndex = 3 + Me.iagree_box.Text = "I agree." + Me.iagree_box.UseVisualStyleBackColor = True + ' + 'start_app + ' + Me.start_app.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles) + Me.start_app.Font = New System.Drawing.Font("Microsoft Sans Serif", 13.0!) + Me.start_app.Location = New System.Drawing.Point(50, 413) + Me.start_app.Name = "start_app" + Me.start_app.Size = New System.Drawing.Size(170, 31) + Me.start_app.TabIndex = 4 + Me.start_app.Text = "Start Application" + Me.start_app.UseVisualStyleBackColor = True + ' + 'exit_app + ' + Me.exit_app.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles) + Me.exit_app.Font = New System.Drawing.Font("Microsoft Sans Serif", 13.0!) + Me.exit_app.Location = New System.Drawing.Point(226, 413) + Me.exit_app.Name = "exit_app" + Me.exit_app.Size = New System.Drawing.Size(170, 31) + Me.exit_app.TabIndex = 4 + Me.exit_app.Text = "Exit Application" + Me.exit_app.UseVisualStyleBackColor = True + ' + 'TextBox1 + ' + Me.TextBox1.BackColor = System.Drawing.Color.Red + Me.TextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None + Me.TextBox1.Dock = System.Windows.Forms.DockStyle.Top + Me.TextBox1.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.0!) + Me.TextBox1.Location = New System.Drawing.Point(0, 0) + Me.TextBox1.Multiline = True + Me.TextBox1.Name = "TextBox1" + Me.TextBox1.ReadOnly = True + Me.TextBox1.Size = New System.Drawing.Size(436, 293) + Me.TextBox1.TabIndex = 5 + Me.TextBox1.Text = resources.GetString("TextBox1.Text") + ' 'splash ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.BackColor = System.Drawing.Color.Red - Me.ClientSize = New System.Drawing.Size(473, 314) + Me.ClientSize = New System.Drawing.Size(436, 509) + Me.Controls.Add(Me.TextBox1) + Me.Controls.Add(Me.exit_app) + Me.Controls.Add(Me.start_app) + Me.Controls.Add(Me.iagree_box) + Me.Controls.Add(Me.isadmin_box) Me.Controls.Add(Me.Label1) - Me.Controls.Add(Me.PictureBox1) Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) Me.Name = "splash" Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen - Me.Text = "splash" - Me.TransparencyKey = System.Drawing.Color.Red - CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit() + Me.Text = "INFO WARNING" + Me.TransparencyKey = System.Drawing.Color.Transparent Me.ResumeLayout(False) + Me.PerformLayout() End Sub - - Friend WithEvents PictureBox1 As PictureBox Friend WithEvents Label1 As Label + Friend WithEvents isadmin_box As CheckBox + Friend WithEvents iagree_box As CheckBox + Friend WithEvents start_app As Button + Friend WithEvents exit_app As Button + Friend WithEvents TextBox1 As TextBox End Class diff --git a/wtfpsbooster/splash.resx b/wtfpsbooster/splash.resx index e785625..9ec23e1 100644 --- a/wtfpsbooster/splash.resx +++ b/wtfpsbooster/splash.resx @@ -117,6 +117,14 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + By using this program, you acknowledge that is not official Gaijin software. +This program uses built in windows tools to improve any application. +Normal users do not have access normally to such tools and this program takes control of such tools. +This tool is not advantage software (Cheatware.) + +You must run this program as Admin to grant such ability. + diff --git a/wtfpsbooster/splash.vb b/wtfpsbooster/splash.vb index 4244761..def3618 100644 --- a/wtfpsbooster/splash.vb +++ b/wtfpsbooster/splash.vb @@ -1,2 +1,27 @@ Public Class splash + Private Sub splash_Load(sender As Object, e As EventArgs) Handles Me.Load + If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) = True Then + isadmin_box.Checked = True + isadmin_box.Text = "Is Admin: Yes" + Else + isadmin_box.Checked = False + isadmin_box.Text = "Is Admin: No" + End If + End Sub + + Private Sub start_app_Click(sender As Object, e As EventArgs) Handles start_app.Click + If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) = False Then + MessageBox.Show("Please run as admin!") + ElseIf iagree_box.Checked = True Then + Me.Close() + ElseIf iagree_box.Checked = False Then + MessageBox.Show("Please agree.") + End If + + End Sub + + Private Sub exit_app_Click(sender As Object, e As EventArgs) Handles exit_app.Click + Me.Close() + Application.Exit() + End Sub End Class \ No newline at end of file diff --git a/wtfpsbooster/wtfpsbooster.vbproj b/wtfpsbooster/wtfpsbooster.vbproj index 8a4a2f5..9efc38a 100644 --- a/wtfpsbooster/wtfpsbooster.vbproj +++ b/wtfpsbooster/wtfpsbooster.vbproj @@ -14,7 +14,7 @@ v4.8 false - C:\Users\kille\Documents\GitHub\cpu-core-controller\ControlMyCores\binaries\pub\ + I:\Projects\War-Thunder-FPS-Booster\wtfpsbooster\Builds\ true Disk false @@ -24,8 +24,8 @@ false false true - 122 - 2.7.0.%2a + 44 + 2.19.0.44 false true true @@ -66,13 +66,13 @@ My Project\app.manifest - CFDF2752512CEFB2150408F49C326256C5D2BCA5 + 8DA656CF1C78C8DD58C2D00AC2444A3D9B67FE09 - wtfpsbooster_2_TemporaryKey.pfx + wtfpsbooster_3_TemporaryKey.pfx - false + true true @@ -290,6 +290,7 @@ + @@ -311,9 +312,9 @@ - + False - Microsoft .NET Framework 4.5 %28x86 and x64%29 + Microsoft .NET Framework 4.8 %28x86 and x64%29 true @@ -326,6 +327,11 @@ .NET Framework 3.5 SP1 false + + False + .NET Desktop Runtime 6.0.6 %28x86%29 + true +