-
Notifications
You must be signed in to change notification settings - Fork 0
/
Performance Page.cs
132 lines (117 loc) · 3.92 KB
/
Performance Page.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System;
using System.Drawing;
using System.Linq;
using System.Management;
using System.Net.NetworkInformation;
using System.Windows.Forms;
using System.Diagnostics;
using System.Threading;
using System.Reflection;
using System.Net;
using System.IO;
namespace Loader
{
public partial class UserControl3 : UserControl
{
public UserControl3()
{
InitializeComponent();
label2.Hide();
label3.Hide();
label4.Hide();
label5.Hide();
}
private void bunifuButton2_Click(object sender, EventArgs e)
{
foreach (var process in Process.GetProcessesByName("BONEWORKS"))
{
process.Kill();
}
}
//Ultra
private void bunifuButton1_Click(object sender, EventArgs e)
{
WebClient webClient = new WebClient();
string file1 = "BONEWORKS_Data\\Plugins\\openvr_mod.cfg";
string file2 = "BONEWORKS_Data\\Plugins\\openvr_api.dll";
webClient.DownloadFile("https://cdn.discordapp.com/attachments/917888058228105278/934406307782471761/openvr_mod.cfg", file1);
webClient.DownloadFile("https://cdn.discordapp.com/attachments/917888058228105278/934409256810209380/openvr_api.dll", file2);
//Show "Applied!" Text
Thread.Sleep(7000);
label2.Show();
Thread.Sleep(2000);
label2.Hide();
}
//Quality
private void bunifuButton3_Click(object sender, EventArgs e)
{
WebClient webClient = new WebClient();
string file1 = "BONEWORKS_Data\\Plugins\\openvr_mod.cfg";
string file2 = "BONEWORKS_Data\\Plugins\\openvr_api.dll";
webClient.DownloadFile("https://cdn.discordapp.com/attachments/917888058228105278/934407718511448084/openvr_mod.cfg", file1);
webClient.DownloadFile("https://cdn.discordapp.com/attachments/917888058228105278/934409256810209380/openvr_api.dll", file2);
//Show "Applied!" Text
label3.Show();
Thread.Sleep(2000);
label3.Hide();
}
//Balanced
private void bunifuButton4_Click(object sender, EventArgs e)
{
WebClient webClient = new WebClient();
string file1 = "BONEWORKS_Data\\Plugins\\openvr_mod.cfg";
string file2 = "BONEWORKS_Data\\Plugins\\openvr_api.dll";
webClient.DownloadFile("https://cdn.discordapp.com/attachments/917888058228105278/934408440355356752/openvr_mod.cfg", file1);
webClient.DownloadFile("https://cdn.discordapp.com/attachments/917888058228105278/934409256810209380/openvr_api.dll", file2);
//Show "Applied!" Text
label4.Show();
Thread.Sleep(2000);
label4.Hide();
}
//Performance
private void bunifuButton5_Click(object sender, EventArgs e)
{
WebClient webClient = new WebClient();
string file1 = "BONEWORKS_Data\\Plugins\\openvr_mod.cfg";
string file2 = "BONEWORKS_Data\\Plugins\\openvr_api.dll";
webClient.DownloadFile("https://cdn.discordapp.com/attachments/917888058228105278/934408535213764648/openvr_mod.cfg", file1);
webClient.DownloadFile("https://cdn.discordapp.com/attachments/917888058228105278/934409256810209380/openvr_api.dll", file2);
//Show "Applied!" Text
label5.Show();
Thread.Sleep(2000);
label5.Hide();
}
//Remove Mod
private void bunifuButton6_Click(object sender, EventArgs e)
{
WebClient webClient = new WebClient();
string file1 = "BONEWORKS_Data\\Plugins\\openvr_api.dll";
webClient.DownloadFile("https://cdn.discordapp.com/attachments/917888058228105278/934408869990518804/openvr_api.dll", file1);
String myPath = "BONEWORKS_Data\\Plugins\\openvr_mod.cfg";
File.Delete(myPath);
}
private void UserControl3_Load(object sender, EventArgs e)
{
}
}
}