Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit e7fd464

Browse files
committed
Added HomeView in Views Folder, added function to it for checking the version of DLLs of Current, Backup and Hack.
Minor code changes to other forms
1 parent a20ff3a commit e7fd464

15 files changed

+611
-69
lines changed

Minecraft Launch Script/Views/HomeView.Designer.vb

+535-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Minecraft Launch Script/Views/HomeView.resx

+1-61
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<root>
3-
<!--
4-
Microsoft ResX Schema
5-
6-
Version 2.0
7-
8-
The primary goals of this format is to allow a simple XML format
9-
that is mostly human readable. The generation and parsing of the
10-
various data types are done through the TypeConverter classes
11-
associated with the data types.
12-
13-
Example:
14-
15-
... ado.net/XML headers & schema ...
16-
<resheader name="resmimetype">text/microsoft-resx</resheader>
17-
<resheader name="version">2.0</resheader>
18-
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19-
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20-
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21-
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22-
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23-
<value>[base64 mime encoded serialized .NET Framework object]</value>
24-
</data>
25-
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26-
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27-
<comment>This is a comment</comment>
28-
</data>
29-
30-
There are any number of "resheader" rows that contain simple
31-
name/value pairs.
32-
33-
Each data row contains a name, and value. The row also contains a
34-
type or mimetype. Type corresponds to a .NET class that support
35-
text/value conversion through the TypeConverter architecture.
36-
Classes that don't support this are serialized and stored with the
37-
mimetype set.
38-
39-
The mimetype is used for serialized objects, and tells the
40-
ResXResourceReader how to depersist the object. This is currently not
41-
extensible. For a given mimetype the value must be set accordingly:
42-
43-
Note - application/x-microsoft.net.object.binary.base64 is the format
44-
that the ResXResourceWriter will generate, however the reader can
45-
read any of the formats listed below.
46-
47-
mimetype: application/x-microsoft.net.object.binary.base64
48-
value : The object must be serialized with
49-
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50-
: and then encoded with base64 encoding.
51-
52-
mimetype: application/x-microsoft.net.object.soap.base64
53-
value : The object must be serialized with
54-
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55-
: and then encoded with base64 encoding.
56-
57-
mimetype: application/x-microsoft.net.object.bytearray.base64
58-
value : The object must be serialized into a byte array
59-
: using a System.ComponentModel.TypeConverter
60-
: and then encoded with base64 encoding.
61-
-->
1+
<root>
622
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
633
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
644
<xsd:element name="root" msdata:IsDataSet="true">
+39-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1-
Public Class HomeView
1+
Imports System.IO
22

3+
Public Class HomeView
4+
Private Sub HomeView_Load(sender As Object, e As EventArgs) Handles MyBase.Load
5+
6+
Dim fileReader As String
7+
Shell("cmd.exe /c wmic datafile where name=""C:\\Windows\\System32\\Windows.ApplicationModel.Store.dll"" Get Version /value > ""CurSystem32Ver.txt"" && wmic datafile where name=""C:\\Windows\\SysWOW64\\Windows.ApplicationModel.Store.dll"" Get Version /value > ""CurSysWOW64Ver.txt"" ")
8+
Threading.Thread.Sleep(800)
9+
Try
10+
fileReader = My.Computer.FileSystem.ReadAllText("CurSystem32Ver.txt").Replace("Version=", "")
11+
lblCurrentSystem32DllVersion.Text = fileReader.Trim
12+
fileReader = My.Computer.FileSystem.ReadAllText("CurSysWOW64Ver.txt").Replace("Version=", "")
13+
lblCurrentSysWOW64DllVersion.Text = fileReader.Trim
14+
Catch ex As FileNotFoundException
15+
MsgBox(ex.ToString)
16+
Shell("Cmd.exe /c type nul > CurSystem32Ver.txt && type nul > CurSysWOW64Ver.txt")
17+
End Try
18+
19+
Try
20+
Dim backupSystem32Dll As FileVersionInfo = FileVersionInfo.GetVersionInfo("bin\dlls\Original Dlls Backup\System32\Windows.ApplicationModel.Store.dll")
21+
lblBackupSystem32DllVersion.Text = backupSystem32Dll.ProductVersion.ToString
22+
Dim backupSysWOW64Dll As FileVersionInfo = FileVersionInfo.GetVersionInfo("bin\dlls\Original Dlls Backup\SysWOW64\Windows.ApplicationModel.Store.dll")
23+
lblBackupSysWOW64DllVersion.Text = backupSystem32Dll.ProductVersion.ToString
24+
Catch ex As FileNotFoundException
25+
lblBackupSystem32DllVersion.Text = "Backup not found"
26+
lblBackupSysWOW64DllVersion.Text = "Backup not found"
27+
End Try
28+
End Sub
29+
30+
Private Sub btnRefresh_Click(sender As Object, e As EventArgs) Handles btnRefresh.Click
31+
Application.Restart()
32+
End Sub
33+
34+
Private Sub HomeView_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
35+
Shell("cmd.exe /c del /f CurSystem32Ver.txt CurSysWOW64Ver.txt")
36+
End Sub
37+
38+
Private Sub HomeView_FormClosed(sender As Object, e As FormClosedEventArgs) Handles MyBase.FormClosed
39+
Shell("cmd.exe /c del /f CurSystem32Ver.txt CurSysWOW64Ver.txt")
40+
End Sub
341
End Class

Minecraft Launch Script/Views/MainPage.Designer.vb

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Minecraft Launch Script/Views/MainPage.vb

+33-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Imports System.Windows.Forms.VisualStyles.VisualStyleElement.Status
1+
Imports System.IO
2+
Imports System.Windows.Forms.VisualStyles.VisualStyleElement.Status
23
Public Class MainPage
34
Sub switchPanel(ByVal panel As Form)
45
Panel3.Controls.Clear()
@@ -12,14 +13,15 @@ Public Class MainPage
1213
GC.Collect()
1314
GC.WaitForPendingFinalizers()
1415
GC.Collect()
15-
switchPanel(NewMethodBypassView)
16+
switchPanel(HomeView)
1617
End Sub
1718

1819
Private Sub btnNewMethodBypass_Click(sender As Object, e As EventArgs) Handles btnNewMethodBypass.Click
1920
GC.Collect()
2021
GC.WaitForPendingFinalizers()
2122
GC.Collect()
2223
switchPanel(NewMethodBypassView)
24+
Shell("cmd.exe /c del /f CurSystem32Ver.txt CurSysWOW64Ver.txt")
2325
End Sub
2426

2527
Private Sub btnOldMethod_Click(sender As Object, e As EventArgs) Handles btnOldMethod.Click
@@ -41,5 +43,34 @@ Public Class MainPage
4143
GC.WaitForPendingFinalizers()
4244
GC.Collect()
4345
switchPanel(HomeView)
46+
Dim fileReader As String
47+
Shell("cmd.exe /c wmic datafile where name=""C:\\Windows\\System32\\Windows.ApplicationModel.Store.dll"" Get Version /value > ""CurSystem32Ver.txt"" && wmic datafile where name=""C:\\Windows\\SysWOW64\\Windows.ApplicationModel.Store.dll"" Get Version /value > ""CurSysWOW64Ver.txt"" ")
48+
Threading.Thread.Sleep(800)
49+
Try
50+
fileReader = My.Computer.FileSystem.ReadAllText("CurSystem32Ver.txt").Replace("Version=", "")
51+
HomeView.lblCurrentSystem32DllVersion.Text = fileReader.Trim
52+
fileReader = My.Computer.FileSystem.ReadAllText("CurSysWOW64Ver.txt").Replace("Version=", "")
53+
HomeView.lblCurrentSysWOW64DllVersion.Text = fileReader.Trim
54+
Catch ex As FileNotFoundException
55+
MsgBox(ex.ToString)
56+
Shell("Cmd.exe /c type nul > CurSystem32Ver.txt && type nul > CurSysWOW64Ver.txt")
57+
End Try
58+
Try
59+
Dim backupSystem32Dll As FileVersionInfo = FileVersionInfo.GetVersionInfo("bin\dlls\Original Dlls Backup\System32\Windows.ApplicationModel.Store.dll")
60+
HomeView.lblBackupSystem32DllVersion.Text = backupSystem32Dll.ProductVersion.ToString
61+
Dim backupSysWOW64Dll As FileVersionInfo = FileVersionInfo.GetVersionInfo("bin\dlls\Original Dlls Backup\SysWOW64\Windows.ApplicationModel.Store.dll")
62+
HomeView.lblBackupSysWOW64DllVersion.Text = backupSystem32Dll.ProductVersion.ToString
63+
Catch ex As FileNotFoundException
64+
HomeView.lblBackupSystem32DllVersion.Text = "Backup not found"
65+
HomeView.lblBackupSysWOW64DllVersion.Text = "Backup not found"
66+
End Try
67+
End Sub
68+
69+
Private Sub MainPage_FormClosed(sender As Object, e As FormClosedEventArgs) Handles MyBase.FormClosed
70+
Shell("cmd.exe /c del /f CurSystem32Ver.txt CurSysWOW64Ver.txt")
71+
End Sub
72+
73+
Private Sub MainPage_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
74+
Shell("cmd.exe /c del /f CurSystem32Ver.txt CurSysWOW64Ver.txt")
4475
End Sub
4576
End Class

Minecraft Launch Script/Views/NewMethodBypassView.vb

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
GC.Collect()
1515
GC.WaitForPendingFinalizers()
1616
GC.Collect()
17+
HomeView.Close()
1718
End Sub
1819

1920
Private Sub New_Method_Bypass_FormClosed(sender As Object, e As FormClosedEventArgs) Handles MyBase.FormClosed
@@ -52,4 +53,5 @@
5253
Shell("logoff")
5354
End If
5455
End Sub
56+
5557
End Class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)