Skip to content

Commit

Permalink
Merge pull request #1 from cyberofficial/dev
Browse files Browse the repository at this point in the history
Watch Dog Panic Attack
  • Loading branch information
cyberofficial authored Sep 23, 2022
2 parents 5d044d9 + 30e1fbf commit cf6147d
Show file tree
Hide file tree
Showing 12 changed files with 213 additions and 145 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
wtfpsbooster/bin/*
wtfpsbooster/obj/*
wtfpsbooster/obj/x86/*
wtfpsbooster/Builds/*
115 changes: 45 additions & 70 deletions wtfpsbooster/Form1.Designer.vb

Large diffs are not rendered by default.

24 changes: 10 additions & 14 deletions wtfpsbooster/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions wtfpsbooster/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyDescription("Boost your FPS in the Game War Thunder")>
<Assembly: AssemblyCompany("Cyber Apps")>
<Assembly: AssemblyProduct("WTFPSBooster")>
<Assembly: AssemblyCopyright("Copyright © 2016-2020")>
<Assembly: AssemblyCopyright("Copyright © 2016-2022")>
<Assembly: AssemblyTrademark("")>

<Assembly: ComVisible(False)>
Expand All @@ -31,7 +31,7 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("2.1.0.28")>
<Assembly: AssemblyFileVersion("2.1.0.28")>
<Assembly: AssemblyVersion("2.19.0.44")>
<Assembly: AssemblyFileVersion("2.19.0.44")>

<Assembly: NeutralResourcesLanguageAttribute("en-US")>
2 changes: 1 addition & 1 deletion wtfpsbooster/My Project/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
If you want to utilize File and Registry Virtualization for backward
compatibility then delete the requestedExecutionLevel node.
-->
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
<applicationRequestMinimum>
<defaultAssemblyRequest permissionSetReference="Custom" />
Expand Down
43 changes: 18 additions & 25 deletions wtfpsbooster/WatchDog_Settings.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

107 changes: 84 additions & 23 deletions wtfpsbooster/splash.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions wtfpsbooster/splash.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="TextBox1.Text" xml:space="preserve">
<value>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.</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
Expand Down
Loading

0 comments on commit cf6147d

Please sign in to comment.