diff --git a/.gitignore b/.gitignore
index 004ad65..64f4b88 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,70 +1,15 @@
-sources/GUI/.vs/GUI/v16/.suo
-sources/Downgrader/.vs/Jetpack Downgrader/v16/.suo
-sources/.vs/Jetpack Downgrader/v17/.suo
-sources/GUI/.vs/GUI/v17/.suo
-sources/Downgrader/.vs/Jetpack Downgrader/v17/.suo
-sources/.vs/Jetpack Downgrader/v17/.suo
-sources/.vs/Jetpack Downgrader/project-colors.json
+sources/GUI/.vs/
+sources/Downgrader/.vs/
+sources/.vs/
*.exe
*.cache
*.dll
*.p7s
*.nupkg
-sources/Downgrader/obj/Release/JetpackDowngrader.Properties.Resources.resources
-sources/Downgrader/obj/Release/Jetpack Downgrader.csproj.FileListAbsolute.txt
-sources/Downgrader/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs
-sources/Downgrader/bin/Release/jpd.exe.config
-sources/Downgrader/obj/Release/Downgrader.Properties.Resources.resources
-sources/Downgrader/obj/Release/Downgrader.csproj.FileListAbsolute.txt
-sources/GUI/obj/Release/JetpackDowngraderGUI.MainForm.resources
-sources/GUI/obj/Release/GUI.csproj.FileListAbsolute.txt
-sources/GUI/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs
-sources/GUI/obj/Release/JetpackGUI.MyProgressBar.resources
-sources/GUI/bin/Release/gui.exe.config
-sources/GUI/obj/Release/GUI.csproj.CopyComplete
-sources/GUI/obj/Release/JetpackDowngraderGUI.Properties.Resources.resources
-sources/GUI/bin/Release/app.exe.config
-sources/GUI/obj/Release/JetpackGUI.MainForm.resources
-sources/GUI/obj/Release/JetpackGUI.Properties.Resources.resources
-sources/GUI/bin/Release/MegaApiClient.xml
-sources/GUI/bin/Release/Newtonsoft.Json.xml
-sources/GUI/obj/Release/JetpackGUI.MyLang.resources
-sources/GUI/obj/Release/JetpackGUI.About.resources
-sources/GUI/obj/Release/JetpackGUI.MyProgressBar.resources
-sources/packages/MegaApiClient.1.9.0/lib/net40/MegaApiClient.xml
-sources/packages/MegaApiClient.1.9.0/lib/net45/MegaApiClient.xml
-sources/packages/MegaApiClient.1.9.0/lib/net46/MegaApiClient.xml
-sources/packages/MegaApiClient.1.9.0/lib/netstandard1.3/MegaApiClient.xml
-sources/packages/MegaApiClient.1.9.0/lib/netstandard2.0/MegaApiClient.xml
-sources/packages/Newtonsoft.Json.13.0.1/lib/net20/Newtonsoft.Json.xml
-sources/packages/Newtonsoft.Json.13.0.1/lib/net35/Newtonsoft.Json.xml
-sources/packages/Newtonsoft.Json.13.0.1/lib/net40/Newtonsoft.Json.xml
-sources/packages/Newtonsoft.Json.13.0.1/lib/net45/Newtonsoft.Json.xml
-sources/packages/Newtonsoft.Json.13.0.1/lib/netstandard1.0/Newtonsoft.Json.xml
-sources/packages/Newtonsoft.Json.13.0.1/lib/netstandard1.3/Newtonsoft.Json.xml
-sources/packages/Newtonsoft.Json.13.0.1/lib/netstandard2.0/Newtonsoft.Json.xml
-sources/packages/Newtonsoft.Json.13.0.1/LICENSE.md
-sources/packages/Newtonsoft.Json.13.0.1/packageIcon.png
-sources/Downgrader/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs
-sources/Downgrader/obj/Debug/build.force
-sources/GUI/bin/Debug/app.exe.config
-sources/GUI/bin/Debug/app.pdb
-sources/GUI/bin/Debug/MegaApiClient.xml
-sources/GUI/bin/Debug/Newtonsoft.Json.xml
-sources/GUI/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs
-sources/GUI/obj/Debug/app.pdb
-sources/GUI/obj/Debug/GUI.csproj.CopyComplete
-sources/GUI/obj/Debug/GUI.csproj.FileListAbsolute.txt
-sources/GUI/obj/Debug/JetpackGUI.About.resources
-sources/GUI/obj/Debug/JetpackGUI.MainForm.resources
-sources/GUI/obj/Debug/JetpackGUI.MyLang.resources
-sources/GUI/obj/Debug/JetpackGUI.MyProgressBar.resources
-sources/GUI/obj/Debug/JetpackGUI.Properties.Resources.resources
-sources/GUI/obj/Release/JetpackGUI.WDebug.resources
-sources/Downgrader/obj/Release/Downgrader.csproj.CopyComplete
-sources/GUI/GUI.csproj.user
-sources/GUI/obj/Debug/JetpackGUI.WDebug.resources
-sources/Downgrader/obj/Debug/Downgrader.csproj.FileListAbsolute.txt
-sources/GUI/obj/Release/JetpackGUI.ChooseGame.resources
-sources/GUI/obj/Release/build.force
-sources/Downgrader/obj/Release/build.force
+sources/packages/
+sources/Downgrader/bin/
+sources/Downgrader/obj/
+sources/GUI/bin/
+sources/GUI/obj/
+*.csproj.user
+sources/packages/
\ No newline at end of file
diff --git a/sources/Downgrader/Downgrader.csproj b/sources/Downgrader/Downgrader.csproj
index 2ba6c6a..b214f2a 100644
--- a/sources/Downgrader/Downgrader.csproj
+++ b/sources/Downgrader/Downgrader.csproj
@@ -46,7 +46,7 @@
false
none
false
- ..\..\..\..\DEV\JPDBUILD\files\
+ bin\
JetpackDowngrader.Program
@@ -73,7 +73,7 @@
- ..\..\..\VitNX\source\VitNX\bin\Debug\VitNX2.dll
+ ..\..\..\..\..\Downloads\VitNX2.dll
diff --git a/sources/Downgrader/Program.cs b/sources/Downgrader/Program.cs
index f5a7071..96b15a1 100644
--- a/sources/Downgrader/Program.cs
+++ b/sources/Downgrader/Program.cs
@@ -1,1362 +1,1359 @@
using Microsoft.Win32;
-using System;
-using System.Diagnostics;
-using System.IO;
-using System.Windows.Forms;
+using System;
+using System.Diagnostics;
+using System.IO;
+using System.Windows.Forms;
using System.Xml.Serialization;
using System.Reflection;
-using VitNX.Functions.Common;
-using VitNX.Functions.Common.Information;
-using VitNX.Functions.Windows.Apps;
-using VitNX.Functions.Windows.Win32;
+using VitNX.Functions.Information;
+using VitNX.Functions.AppsAndProcesses;
+using VitNX.Functions.Win32;
+using VitNX.Functions.FileSystem;
using VitNX.UI.Console.ProgressBar;
+using File = System.IO.File;
-namespace JetpackDowngrader
-{
- internal class Program
- {
+namespace JetpackDowngrader
+{
+ internal class Program
+ {
[STAThread]
- public static void Main(string[] args)
- {
- string[] fl = new string[17];
- string[] flmd5 = new string[17];
+ public static void Main(string[] args)
+ {
+ string[] fl = new string[17];
+ string[] flmd5 = new string[17];
int er = 0, gv = 0;
bool[] settings = new bool[10];
- string path = "";
-
- Console.ResetColor();
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- // All files for downgrading (universal)
- fl[0] = @"\gta-sa.exe";
+ string path = "";
+
+ Console.ResetColor();
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ // All files for downgrading (universal)
+ fl[0] = @"\gta-sa.exe";
fl[1] = @"\gta_sa.exe";
fl[2] = @"\audio\CONFIG\TrakLkup.dat";
- fl[3] = @"\audio\streams\BEATS";
- fl[4] = @"\audio\streams\CH";
- fl[5] = @"\audio\streams\CR";
- fl[6] = @"\audio\streams\CUTSCENE";
- fl[7] = @"\audio\streams\DS";
+ fl[3] = @"\audio\streams\BEATS";
+ fl[4] = @"\audio\streams\CH";
+ fl[5] = @"\audio\streams\CR";
+ fl[6] = @"\audio\streams\CUTSCENE";
+ fl[7] = @"\audio\streams\DS";
fl[8] = @"\audio\streams\MH";
fl[9] = @"\audio\streams\MR";
fl[10] = @"\audio\streams\RE";
- fl[11] = @"\audio\streams\RG";
- fl[12] = @"\anim\anim.img";
+ fl[11] = @"\audio\streams\RG";
+ fl[12] = @"\anim\anim.img";
fl[13] = @"\data\script\main.scm";
fl[14] = @"\data\script\script.img";
- fl[15] = @"\models\gta_int.img";
- fl[16] = @"\models\gta3.img";
- // Original MD5 for files from game version 1.0
+ fl[15] = @"\models\gta_int.img";
+ fl[16] = @"\models\gta3.img";
+ // Original MD5 for files from game version 1.0
flmd5[0] = "170B3A9108687B26DA2D8901C6948A18";
flmd5[1] = "E7697A085336F974A4A6102A51223960";
flmd5[2] = "528E75D663B8BAE072A01351081A2145";
- flmd5[3] = "E26D86C7805D090D8210086876D6C35C";
+ flmd5[3] = "E26D86C7805D090D8210086876D6C35C";
flmd5[4] = "FE31259226E0B4A8A963C70840E1FE8F";
flmd5[5] = "900148B8141EA4C1E782C3A48DBFBF3B";
flmd5[6] = "C25FCAA329B3D48F197FF4ED2A1D2A4D";
- flmd5[7] = "9B4C18E4F3E82F0FEE41E30B2EA2246A";
+ flmd5[7] = "9B4C18E4F3E82F0FEE41E30B2EA2246A";
flmd5[8] = "909E7C4A7A29473E3885A96F987D7221";
flmd5[9] = "A1EC1CBE16DBB9F73022C6F33658ABE2";
flmd5[10] = "49B83551C684E17164F2047DCBA3E5AA";
- flmd5[11] = "7491DC5325854C7117AF6E31900F38DD";
+ flmd5[11] = "7491DC5325854C7117AF6E31900F38DD";
flmd5[12] = "3359BA8CB820299161199EE7EF3F1C02";
flmd5[13] = "60AD23E272C3B0AA937053FE3006BE93";
flmd5[14] = "9598B82CF1E5AE7A8558057A01F6F2CE";
- flmd5[15] = "DBE7E372D55914C39EB1D565E8707C8C";
- flmd5[16] = "9282E0DF8D7EEE3C4A49B44758DD694D";
- //
- // todo Localization
- //string lgcode = "EN";
- //if (File.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\gui.xml"))
- //{
- // XmlSerializer serializer = new XmlSerializer(typeof(SettingsEditor));
- // using (StringReader reader = new StringReader(File.ReadAllText(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\gui.xml")))
- // {
- // var string_gui = (GUI_Settings)serializer.Deserialize(reader);
- // lgcode = string_gui.LnguageCode;
- // }
- //}
- Console.Title = "Jetpack Downgrader";
- Console.ForegroundColor = ConsoleColor.Yellow;
+ flmd5[15] = "DBE7E372D55914C39EB1D565E8707C8C";
+ flmd5[16] = "9282E0DF8D7EEE3C4A49B44758DD694D";
+ Console.Title = "Jetpack Downgrader";
+ Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("[JPD] App: Jetpack Downgrader\n[JPD] Version: " +
- Assembly.GetExecutingAssembly().GetName().Version.ToString() + "\n[JPD] License: MIT" +
- "\n[JPD] Authors: Zalexanninev15 (programmer and creator) & Vadim M. (consultant)" +
- "\n[JPD] GitHub: https://github.com/Zalexanninev15/Jetpack-Downgrader\n\n[App] Start of log output...");
- Console.ResetColor();
- try
- {
+ Assembly.GetExecutingAssembly().GetName().Version.ToString() + "\n[JPD] License: MIT" +
+ "\n[JPD] Authors: Zalexanninev15 (programmer and creator) & Vadim M. (consultant)" +
+ "\n[JPD] GitHub: https://github.com/Zalexanninev15/Jetpack-Downgrader\n\n[App] Start of log output...");
+ Console.ResetColor();
+ try
+ {
settings[0] = false;
settings[1] = true;
settings[2] = true;
- settings[3] = false;
- settings[4] = false;
- settings[5] = true;
- settings[6] = true;
+ settings[3] = false;
+ settings[4] = false;
+ settings[5] = true;
+ settings[6] = true;
settings[7] = false;
settings[8] = false;
- settings[9] = true;
- if (File.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\downgrader.xml"))
- {
- XmlSerializer serializer = new XmlSerializer(typeof(SettingsEditor));
- using (StringReader reader = new StringReader(File.ReadAllText(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\downgrader.xml")))
- {
- var bool_settings = (SettingsEditor)serializer.Deserialize(reader);
+ settings[9] = true;
+ if (File.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\downgrader.xml"))
+ {
+ XmlSerializer serializer = new XmlSerializer(typeof(SettingsEditor));
+ using (StringReader reader = new StringReader(File.ReadAllText(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\downgrader.xml")))
+ {
+ var bool_settings = (SettingsEditor)serializer.Deserialize(reader);
settings[0] = bool_settings.CreateBackups;
settings[1] = bool_settings.CreateShortcut;
- settings[2] = bool_settings.ResetGame;
- settings[3] = bool_settings.RGLGarbageCleaning;
+ settings[2] = bool_settings.ResetGame;
+ settings[3] = bool_settings.RGLGarbageCleaning;
settings[4] = bool_settings.RegisterGamePath;
- settings[5] = bool_settings.CopyGameToNewPath;
+ settings[5] = bool_settings.CopyGameToNewPath;
settings[6] = bool_settings.EnableDirectPlay;
- settings[7] = bool_settings.InstallDirectXComponents;
+ settings[7] = bool_settings.InstallDirectXComponents;
settings[8] = bool_settings.Forced;
- settings[9] = bool_settings.UserMode;
- }
- Logger("App", "downgrader.xml", "true");
- }
- else { Logger("App", "downgrader.xml", "false"); }
- }
- catch { Logger("App", "downgrader.xml", "false"); }
- if (File.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patcher.exe"))
- {
- try { path = args[0]; } catch { }
+ settings[9] = bool_settings.UserMode;
+ }
+ Logger("App", "downgrader.xml", "true");
+ }
+ else { Logger("App", "downgrader.xml", "false"); }
+ }
+ catch { Logger("App", "downgrader.xml", "false"); }
+ if (File.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patcher.exe"))
+ {
+ try { path = args[0]; } catch { }
if (Directory.Exists(path) == false)
- Logger("Game", "Path", "null");
- if ((path != "") && Directory.Exists(path))
- {
- Logger("Game", "Path", "true");
- //
- // Versions detector by Zalexanninev15
- // gv[number] - version
- // 0 - 1.0
- // 1 - Steam
- // 2 - 2.0
- // 3 - Rockstar Games Launcher
- // 4 - Unknown
- // 5 - Error
- // 6 - 1.01
- //
- // Get version (EXE)
- string SaEXE = path + @"\gta-sa.exe";
- Logger("GamePath", "Current", path);
- Logger("Downgrader", "Process", "Get version (EXE)...");
- if (File.Exists(SaEXE))
- {
- try
- {
- string SteamEXEmd5 = FileSystem.GetFileMD5(SaEXE);
- if (SteamEXEmd5 == "5BFD4DD83989A8264DE4B8E771F237FD")
+ Logger("Game", "Path", "null");
+ if ((path != "") && Directory.Exists(path))
+ {
+ Logger("Game", "Path", "true");
+ //
+ // Versions detector by Zalexanninev15
+ // gv[number] - version
+ // 0 - 1.0
+ // 1 - Steam
+ // 2 - 2.0
+ // 3 - Rockstar Games Launcher
+ // 4 - Unknown
+ // 5 - Error
+ // 6 - 1.01
+ //
+ // Get version (EXE)
+ string SaEXE = path + @"\gta-sa.exe";
+ Logger("GamePath", "Current", path);
+ Logger("Downgrader", "Process", "Get version (EXE)...");
+
+ // TODO
+ // VERSION GERMAN - D9CB35C898D3298CA904A63E10EE18D7
+
+ if (File.Exists(SaEXE))
+ {
+ try
+ {
+ string SteamEXEmd5 = VitNX.Functions.FileSystem.File.GetMD5(SaEXE);
+ if (SteamEXEmd5 == "5BFD4DD83989A8264DE4B8E771F237FD" || SteamEXEmd5 == "D9CB35C898D3298CA904A63E10EE18D7")
{
- gv = 1;
+ gv = 1;
Logger("Game", "Version", "Steam");
- }
- else
- {
- gv = 4;
- SaEXE = path + @"\gta_sa.exe";
- try
- {
- string OtherEXEmd5 = FileSystem.GetFileMD5(SaEXE);
+ }
+ else
+ {
+ gv = 4;
+ SaEXE = path + @"\gta_sa.exe";
+ try
+ {
+ string OtherEXEmd5 = VitNX.Functions.FileSystem.File.GetMD5(SaEXE);
if (OtherEXEmd5 == "6687A315558935B3FC80CDBFF04437A4")
{
- gv = 3;
- Logger("Game", "Version", "Rockstar Games Launcher");
- }
- if ((OtherEXEmd5 == "BF25C28E9F6C13BD2D9E28F151899373") ||
- (OtherEXEmd5 == "4E99D762F44B1D5E7652DFA7E73D6B6F"))
- {
- gv = 2;
- Logger("Game", "Version", "2.0");
- }
- if ((OtherEXEmd5 != "6687A315558935B3FC80CDBFF04437A4") &&
- (OtherEXEmd5 != "BF25C28E9F6C13BD2D9E28F151899373") &&
- (OtherEXEmd5 != "4E99D762F44B1D5E7652DFA7E73D6B6F"))
- {
- if ((OtherEXEmd5 != "E7697A085336F974A4A6102A51223960") &&
- (OtherEXEmd5 != "170B3A9108687B26DA2D8901C6948A18") &&
- (OtherEXEmd5 != "91A9F6611ADDFB46682B56F9E247DB84") &&
- (OtherEXEmd5 != "9369501599574D19AC93DE41547C4EC1"))
- {
- if ((OtherEXEmd5 != "A2929A61E4D63DD3C15749B2B7ED74AE") &&
+ gv = 3;
+ Logger("Game", "Version", "Rockstar Games Launcher");
+ }
+ if ((OtherEXEmd5 == "BF25C28E9F6C13BD2D9E28F151899373") ||
+ (OtherEXEmd5 == "4E99D762F44B1D5E7652DFA7E73D6B6F") ||
+ (OtherEXEmd5 == "D9CB35C898D3298CA904A63E10EE18D7"))
+ {
+ gv = 2;
+ Logger("Game", "Version", "2.0");
+ }
+ if ((OtherEXEmd5 != "6687A315558935B3FC80CDBFF04437A4") &&
+ (OtherEXEmd5 != "BF25C28E9F6C13BD2D9E28F151899373") &&
+ (OtherEXEmd5 != "4E99D762F44B1D5E7652DFA7E73D6B6F") &&
+ (OtherEXEmd5 != "D9CB35C898D3298CA904A63E10EE18D7"))
+ {
+ if ((OtherEXEmd5 != "E7697A085336F974A4A6102A51223960") &&
+ (OtherEXEmd5 != "170B3A9108687B26DA2D8901C6948A18") &&
+ (OtherEXEmd5 != "91A9F6611ADDFB46682B56F9E247DB84") &&
+ (OtherEXEmd5 != "9369501599574D19AC93DE41547C4EC1"))
+ {
+ if ((OtherEXEmd5 != "A2929A61E4D63DD3C15749B2B7ED74AE") &&
(OtherEXEmd5 != "25405921D1C47747FD01FD0BFE0A05AE"))
- {
+ {
gv = 4;
Logger("Game", "Version", "Unknown [NOT SUPPORTED]");
- }
+ }
else
{
- gv = 6;
+ gv = 6;
Logger("Game", "Version", "1.01");
- }
- }
- else
- {
- gv = 0;
- Logger("Game", "Version", "1.0");
- }
- }
- }
- catch
- {
- gv = 4;
+ }
+ }
+ else
+ {
+ gv = 0;
+ Logger("Game", "Version", "1.0");
+ }
+ }
+ }
+ catch
+ {
+ gv = 4;
Logger("Game", "Version", "Unknown [NOT SUPPORTED]");
- }
- }
- }
+ }
+ }
+ }
catch
{
- gv = 5;
- er = 1;
- Logger("Game", "Version", "Unknown [ERROR]");
- }
- }
- else
- {
- SaEXE = path + @"\gta_sa.exe";
- try
- {
- string OtherEXEmd5 = FileSystem.GetFileMD5(SaEXE);
- if (OtherEXEmd5 == "5BFD4DD83989A8264DE4B8E771F237FD")
- {
- gv = 1;
- Logger("Game", "Version", "Steam");
- }
- else
- {
- gv = 4;
+ gv = 5;
+ er = 1;
+ Logger("Game", "Version", "Unknown [ERROR]");
+ }
+ }
+ else
+ {
+ SaEXE = path + @"\gta_sa.exe";
+ try
+ {
+ string OtherEXEmd5 = VitNX.Functions.FileSystem.File.GetMD5(SaEXE);
+ if (OtherEXEmd5 == "5BFD4DD83989A8264DE4B8E771F237FD" || OtherEXEmd5 == "D9CB35C898D3298CA904A63E10EE18D7")
+ {
+ gv = 1;
+ Logger("Game", "Version", "Steam");
+ }
+ else
+ {
+ gv = 4;
if (OtherEXEmd5 == "6687A315558935B3FC80CDBFF04437A4")
- {
- gv = 3;
- Logger("Game", "Version", "Rockstar Games Launcher");
- }
- if ((OtherEXEmd5 == "BF25C28E9F6C13BD2D9E28F151899373") ||
- (OtherEXEmd5 == "4E99D762F44B1D5E7652DFA7E73D6B6F"))
{
- gv = 2;
+ gv = 3;
+ Logger("Game", "Version", "Rockstar Games Launcher");
+ }
+ if (OtherEXEmd5 == "BF25C28E9F6C13BD2D9E28F151899373" ||
+ OtherEXEmd5 == "4E99D762F44B1D5E7652DFA7E73D6B6F" ||
+ OtherEXEmd5 == "D9CB35C898D3298CA904A63E10EE18D7")
+ {
+ gv = 2;
Logger("Game", "Version", "2.0");
- }
- if ((OtherEXEmd5 != "6687A315558935B3FC80CDBFF04437A4") &&
- (OtherEXEmd5 != "BF25C28E9F6C13BD2D9E28F151899373") &&
- (OtherEXEmd5 != "4E99D762F44B1D5E7652DFA7E73D6B6F"))
- {
- if ((OtherEXEmd5 != "E7697A085336F974A4A6102A51223960") &&
- (OtherEXEmd5 != "170B3A9108687B26DA2D8901C6948A18") &&
- (OtherEXEmd5 != "91A9F6611ADDFB46682B56F9E247DB84") &&
- (OtherEXEmd5 != "9369501599574D19AC93DE41547C4EC1"))
- {
- if ((OtherEXEmd5 != "A2929A61E4D63DD3C15749B2B7ED74AE") &&
+ }
+ if ((OtherEXEmd5 != "6687A315558935B3FC80CDBFF04437A4") &&
+ (OtherEXEmd5 != "BF25C28E9F6C13BD2D9E28F151899373") &&
+ (OtherEXEmd5 != "4E99D762F44B1D5E7652DFA7E73D6B6F") &&
+ (OtherEXEmd5 != "D9CB35C898D3298CA904A63E10EE18D7"))
+ {
+ if ((OtherEXEmd5 != "E7697A085336F974A4A6102A51223960") &&
+ (OtherEXEmd5 != "170B3A9108687B26DA2D8901C6948A18") &&
+ (OtherEXEmd5 != "91A9F6611ADDFB46682B56F9E247DB84") &&
+ (OtherEXEmd5 != "9369501599574D19AC93DE41547C4EC1"))
+ {
+ if ((OtherEXEmd5 != "A2929A61E4D63DD3C15749B2B7ED74AE") &&
(OtherEXEmd5 != "25405921D1C47747FD01FD0BFE0A05AE"))
{
- gv = 4;
+ gv = 4;
Logger("Game", "Version", "Unknown [NOT SUPPORTED]");
- }
- else
- {
- gv = 6;
- Logger("Game", "Version", "1.01");
- }
- }
- else
- {
- gv = 0;
- Logger("Game", "Version", "1.0");
- }
- }
- }
- }
- catch
- {
+ }
+ else
+ {
+ gv = 6;
+ Logger("Game", "Version", "1.01");
+ }
+ }
+ else
+ {
+ gv = 0;
+ Logger("Game", "Version", "1.0");
+ }
+ }
+ }
+ }
+ catch
+ {
gv = 5;
er = 1;
Logger("Game", "Version", "Unknown [ERROR]");
- }
- }
- if ((gv == 4) || (gv == 5)) { Logger("Downgrader", "Process", "Downgrade is not possible!"); }
- if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\GTA San Andreas User Files\gta_sa.set") || File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments) + @"\GTA San Andreas User Files\gta_sa.set"))
- {
- if ((settings[2] == true) && (gv != 4) && (gv != 5))
- {
- Logger("Downgrader", "Process", "Deleting gta_sa.set (Documents) file...");
- try
- {
- if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\GTA San Andreas User Files\gta_sa.set"))
- {
- File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\GTA San Andreas User Files\gta_sa.set");
- Logger("ResetGame", "gta_sa.set (Documents)", "true");
- }
- else { Logger("ResetGame", "gta_sa.set (Documents)", "false"); }
- }
- catch { Logger("ResetGame", "gta_sa.set (Documents)", "false"); }
- Logger("Downgrader", "Process", "Deleting gta_sa.set (Public Documents) file...");
- try
- {
- if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments) + @"\GTA San Andreas User Files\gta_sa.set"))
- {
- File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments) + @"\GTA San Andreas User Files\gta_sa.set");
- Logger("ResetGame", "gta_sa.set (Public Documents)", "true");
- }
- else { Logger("ResetGame", "gta_sa.set (Public Documents)", "false"); }
- }
- catch { Logger("ResetGame", "gta_sa.set (Public Documents)", "false"); }
- }
- }
- if ((settings[6] == true) && (gv != 5))
- {
- Logger("DirectPlay", "Enabled", "false");
- Logger("DirectPlay", "Enabled", "In process...");
- try
- {
- if (settings[9] == true) { Processes.RunAW("dism", "/Online /enable-feature /FeatureName:\"DirectPlay\" /NoRestart", false); }
- else { Process.Start("dism", "/Online /enable-feature /FeatureName:\"DirectPlay\" /NoRestart").WaitForExit(); }
- }
- catch { Logger("DirectPlay", "Enabled", "Error"); }
- try
- {
- if (settings[9] == true) { Processes.RunAW("dism", "/Online /enable-feature /FeatureName:\"DirectPlay\" /NoRestart /all", false); }
- else { Process.Start("dism", "/Online /enable-feature /FeatureName:\"DirectPlay\" /NoRestart /all").WaitForExit(); }
- }
- catch { Logger("DirectPlay", "Enabled", "Error"); }
- Logger("DirectPlay", "Enabled", "true");
- Logger("DirectPlay", "Guide if DirectPlay not work", "https://docs.microsoft.com/en-us/answers/questions/108291/enable-windows-10-direct-play.html?childToView=111216#answer-111216");
- }
- if ((settings[7] == true) && (gv != 5))
- {
- if (Directory.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\DirectX"))
- {
- try
- {
- Logger("DirectX", "Process", "Installing...");
- Logger("DirectX", "Process", "App is not frozen, just busy right now...");
- Process.Start(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\DirectX\DXSETUP.exe", "/silent").WaitForExit();
- Logger("DirectX", "Process", "Installation completed successfully");
- }
- catch { Logger("DirectX", "Process", "Installation error"); }
- }
- else { Logger("DirectX", "Process", "Installation error"); }
- }
+ }
+ }
+ if ((gv == 4) || (gv == 5)) { Logger("Downgrader", "Process", "Downgrade is not possible!"); }
+ if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\GTA San Andreas User Files\gta_sa.set") || File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments) + @"\GTA San Andreas User Files\gta_sa.set"))
+ {
+ if ((settings[2] == true) && (gv != 4) && (gv != 5))
+ {
+ Logger("Downgrader", "Process", "Deleting gta_sa.set (Documents) file...");
+ try
+ {
+ if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\GTA San Andreas User Files\gta_sa.set"))
+ {
+ File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\GTA San Andreas User Files\gta_sa.set");
+ Logger("ResetGame", "gta_sa.set (Documents)", "true");
+ }
+ else { Logger("ResetGame", "gta_sa.set (Documents)", "false"); }
+ }
+ catch { Logger("ResetGame", "gta_sa.set (Documents)", "false"); }
+ Logger("Downgrader", "Process", "Deleting gta_sa.set (Public Documents) file...");
+ try
+ {
+ if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments) + @"\GTA San Andreas User Files\gta_sa.set"))
+ {
+ File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments) + @"\GTA San Andreas User Files\gta_sa.set");
+ Logger("ResetGame", "gta_sa.set (Public Documents)", "true");
+ }
+ else { Logger("ResetGame", "gta_sa.set (Public Documents)", "false"); }
+ }
+ catch { Logger("ResetGame", "gta_sa.set (Public Documents)", "false"); }
+ }
+ }
+ if ((settings[6] == true) && (gv != 5))
+ {
+ Logger("DirectPlay", "Enabled", "false");
+ Logger("DirectPlay", "Enabled", "In process...");
+ try
+ {
+ if (settings[9] == true) { Processes.RunAW("dism", "/Online /enable-feature /FeatureName:\"DirectPlay\" /NoRestart", false); }
+ else { Process.Start("dism", "/Online /enable-feature /FeatureName:\"DirectPlay\" /NoRestart").WaitForExit(); }
+ }
+ catch { Logger("DirectPlay", "Enabled", "Error"); }
+ try
+ {
+ if (settings[9] == true) { Processes.RunAW("dism", "/Online /enable-feature /FeatureName:\"DirectPlay\" /NoRestart /all", false); }
+ else { Process.Start("dism", "/Online /enable-feature /FeatureName:\"DirectPlay\" /NoRestart /all").WaitForExit(); }
+ }
+ catch { Logger("DirectPlay", "Enabled", "Error"); }
+ Logger("DirectPlay", "Enabled", "true");
+ Logger("DirectPlay", "Guide if DirectPlay not work", "https://docs.microsoft.com/en-us/answers/questions/108291/enable-windows-10-direct-play.html?childToView=111216#answer-111216");
+ }
+ if ((settings[7] == true) && (gv != 5))
+ {
+ if (Directory.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\DirectX"))
+ {
+ try
+ {
+ Logger("DirectX", "Process", "Installing...");
+ Logger("DirectX", "Process", "App is not frozen, just busy right now...");
+ Process.Start(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\DirectX\DXSETUP.exe", "/silent").WaitForExit();
+ Logger("DirectX", "Process", "Installation completed successfully");
+ }
+ catch { Logger("DirectX", "Process", "Installation error"); }
+ }
+ else { Logger("DirectX", "Process", "Installation error"); }
+ }
if ((settings[8] == true) && (gv == 0))
- {
+ {
gv = 6;
- settings[8] = true;
- }
- if ((gv != 0) && (er == 0))
- {
- // Check files
- Logger("Downgrader", "Process", "Scanning files...");
- if ((gv == 6) || (gv == 0)) // 1.01
- {
- if (File.Exists(path + fl[1]))
- {
- Logger("Game", path + fl[1], "true");
- File.SetAttributes(path + fl[1], FileAttributes.Normal);
- try { File.SetAttributes(path + fl[1] + ".jpb", FileAttributes.Normal); } catch { }
- }
+ settings[8] = true;
+ }
+ if ((gv != 0) && (er == 0))
+ {
+ // Check files
+ Logger("Downgrader", "Process", "Scanning files...");
+ if ((gv == 6) || (gv == 0)) // 1.01
+ {
+ if (File.Exists(path + fl[1]))
+ {
+ Logger("Game", path + fl[1], "true");
+ File.SetAttributes(path + fl[1], FileAttributes.Normal);
+ try { File.SetAttributes(path + fl[1] + ".jpb", FileAttributes.Normal); } catch { }
+ }
else
{
er = 1;
- Logger("Game", path + fl[1], "false");
- }
- }
- if (gv == 3) // Rockstar Games Launcher
- {
- using (var progress = new Type1())
- {
- for (int i = 1; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- if (File.Exists(path + fl[i]))
- {
- File.SetAttributes(path + fl[i], FileAttributes.Normal);
- try { File.SetAttributes(path + fl[i] + ".jpb", FileAttributes.Normal); } catch { }
+ Logger("Game", path + fl[1], "false");
+ }
+ }
+ if (gv == 3) // Rockstar Games Launcher
+ {
+ using (var progress = new Type1())
+ {
+ for (int i = 1; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ if (File.Exists(path + fl[i]))
+ {
+ File.SetAttributes(path + fl[i], FileAttributes.Normal);
+ try { File.SetAttributes(path + fl[i] + ".jpb", FileAttributes.Normal); } catch { }
if (settings[9] == false)
- {
- progress.NotUsed(false);
+ {
+ progress.NotUsed(false);
Logger("Game", path + fl[i], "true");
- }
- }
+ }
+ }
else
{
er = 1;
if (settings[9] == false)
{
- progress.NotUsed(false);
- Logger("Game", path + fl[i], "false");
+ progress.NotUsed(false);
+ Logger("Game", path + fl[i], "false");
}
- }
+ }
if (settings[9] == true)
- {
+ {
progress.SetText("Checking files progress");
progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (gv == 2) // Version 2.0
- {
- using (var progress = new Type1())
- {
- for (int i = 1; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- if ((i >= 1) && (i > 11))
- {
- if (File.Exists(path + fl[i]))
- {
- File.SetAttributes(path + fl[i], FileAttributes.Normal);
- try { File.SetAttributes(path + fl[i] + ".jpb", FileAttributes.Normal); } catch { }
- if (settings[9] == false)
+ }
+ }
+ }
+ }
+ if (gv == 2) // Version 2.0
+ {
+ using (var progress = new Type1())
+ {
+ for (int i = 1; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ if ((i >= 1) && (i > 11))
+ {
+ if (File.Exists(path + fl[i]))
+ {
+ File.SetAttributes(path + fl[i], FileAttributes.Normal);
+ try { File.SetAttributes(path + fl[i] + ".jpb", FileAttributes.Normal); } catch { }
+ if (settings[9] == false)
{
- progress.NotUsed(false);
- Logger("Game", path + fl[i], "true");
- }
- }
+ progress.NotUsed(false);
+ Logger("Game", path + fl[i], "true");
+ }
+ }
else
{
er = 1;
- if (settings[9] == false)
- {
+ if (settings[9] == false)
+ {
progress.NotUsed(false);
- Logger("Game", path + fl[i], "false");
+ Logger("Game", path + fl[i], "false");
}
- }
- }
+ }
+ }
if (settings[9] == true)
- {
+ {
progress.SetText("Checking files progress");
progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (gv == 1) // Steam
- {
- using (var progress = new Type1())
- {
- for (int i = 0; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- if (i != 1)
- {
- if (File.Exists(path + fl[i]))
- {
- File.SetAttributes(path + fl[i], FileAttributes.Normal);
- try { File.SetAttributes(path + fl[i] + ".jpb", FileAttributes.Normal); } catch { }
- if (settings[9] == false)
+ }
+ }
+ }
+ }
+ if (gv == 1) // Steam
+ {
+ using (var progress = new Type1())
+ {
+ for (int i = 0; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ if (i != 1)
+ {
+ if (File.Exists(path + fl[i]))
+ {
+ File.SetAttributes(path + fl[i], FileAttributes.Normal);
+ try { File.SetAttributes(path + fl[i] + ".jpb", FileAttributes.Normal); } catch { }
+ if (settings[9] == false)
{
progress.NotUsed(false);
Logger("Game", path + fl[i], "true");
- }
- }
- else
- {
- er = 1;
+ }
+ }
+ else
+ {
+ er = 1;
if (settings[9] == false)
{
progress.NotUsed(false);
Logger("Game", path + fl[i], "false");
- }
- }
- }
+ }
+ }
+ }
if (settings[9] == true)
{
progress.SetText("Checking files progress");
progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- bool fisv = false;
- if (er == 0)
- {
- // Checking files before downgrade (MD5)
- string GameMD5 = "";
- Logger("Game", "All", "true");
- Logger("Downgrader", "Process", "Checking original files before downgrade (MD5)...");
- if (gv == 3) // Rockstar Games Launcher
- {
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[i]);
+ }
+ }
+ }
+ }
+ bool fisv = false;
+ if (er == 0)
+ {
+ // Checking files before downgrade (MD5)
+ string GameMD5 = "";
+ Logger("Game", "All", "true");
+ Logger("Downgrader", "Process", "Checking original files before downgrade (MD5)...");
+ if (gv == 3) // Rockstar Games Launcher
+ {
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[i]);
if (settings[9] == false)
- {
+ {
progress.NotUsed(false);
Logger("GameMD5", path + fl[i], GameMD5);
- }
- if (GameMD5 == flmd5[i])
- {
- fisv = true;
- if (settings[9] == false)
- {
+ }
+ if (GameMD5 == flmd5[i])
+ {
+ fisv = true;
+ if (settings[9] == false)
+ {
progress.NotUsed(false);
- Logger("GameMD5", path + fl[i], "1.0");
- }
- }
- else
+ Logger("GameMD5", path + fl[i], "1.0");
+ }
+ }
+ else
{
if (settings[9] == false)
{
progress.NotUsed(false);
Logger("GameMD5", path + fl[i], "Higher than 1.0!");
- }
- }
- }
- catch
+ }
+ }
+ }
+ catch
{
- fisv = true;
- if (settings[9] == false)
- {
- progress.NotUsed(false);
+ fisv = true;
+ if (settings[9] == false)
+ {
+ progress.NotUsed(false);
Logger("GameMD5", path + fl[i], "File not found!");
}
- }
+ }
if (settings[9] == true)
- {
+ {
progress.SetText("MD5 verification progress");
progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (gv == 2) // Version 2.0
- {
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- if ((i >= 2) && (i > 11))
- {
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[i]);
+ }
+ }
+ }
+ }
+ if (gv == 2) // Version 2.0
+ {
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ if ((i >= 2) && (i > 11))
+ {
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[i]);
if (settings[9] == false)
- {
- progress.NotUsed(false);
- Logger("GameMD5", path + fl[i], GameMD5);
- }
- if (GameMD5 == flmd5[i])
- {
- fisv = true;
- if (settings[9] == false)
+ {
+ progress.NotUsed(false);
+ Logger("GameMD5", path + fl[i], GameMD5);
+ }
+ if (GameMD5 == flmd5[i])
+ {
+ fisv = true;
+ if (settings[9] == false)
{
- progress.NotUsed(false);
- Logger("GameMD5", path + fl[i], "1.0");
- }
- }
+ progress.NotUsed(false);
+ Logger("GameMD5", path + fl[i], "1.0");
+ }
+ }
else
{
- if (settings[9] == false)
+ if (settings[9] == false)
{
- progress.NotUsed(false);
+ progress.NotUsed(false);
Logger("GameMD5", path + fl[i], "Higher than 1.0!");
}
- }
- }
- catch
+ }
+ }
+ catch
{
fisv = true;
if (settings[9] == false)
- {
- progress.NotUsed(false);
- Logger("GameMD5", path + fl[i], "File not found!");
- }
- }
- }
- if (settings[9] == true)
+ {
+ progress.NotUsed(false);
+ Logger("GameMD5", path + fl[i], "File not found!");
+ }
+ }
+ }
+ if (settings[9] == true)
{
- progress.SetText("MD5 verification progress");
- progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (gv == 1) // Steam version
- {
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- if (i >= 2)
- {
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[i]);
- if (settings[9] == false)
- {
+ progress.SetText("MD5 verification progress");
+ progress.Report((double)i / fl.Length);
+ }
+ }
+ }
+ }
+ if (gv == 1) // Steam version
+ {
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ if (i >= 2)
+ {
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[i]);
+ if (settings[9] == false)
+ {
progress.NotUsed(false);
Logger("GameMD5", path + fl[i], GameMD5);
- }
- if (GameMD5 == flmd5[i])
- {
- fisv = true;
+ }
+ if (GameMD5 == flmd5[i])
+ {
+ fisv = true;
if (settings[9] == false)
- {
- progress.NotUsed(false);
+ {
+ progress.NotUsed(false);
Logger("GameMD5", path + fl[i], "1.0");
- }
- }
- else
+ }
+ }
+ else
{
- if (settings[9] == false)
- {
- progress.NotUsed(false);
+ if (settings[9] == false)
+ {
+ progress.NotUsed(false);
Logger("GameMD5", path + fl[i], "Higher than 1.0!");
- }
- }
- }
+ }
+ }
+ }
catch
{
- fisv = true;
+ fisv = true;
if (settings[9] == false)
- {
+ {
progress.NotUsed(false);
Logger("GameMD5", path + fl[i], "File not found!");
}
- }
- }
- if (settings[9] == true)
- {
- progress.SetText("MD5 verification progress");
- progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (settings[8] == true)
- {
- Logger("Downgrader", "Process", "Forced downgrade mode is used...");
- fisv = false;
- gv = 6;
- }
- if (fisv == false)
- {
- if ((settings[5] == true) && ((gv == 1) || (gv == 3)))
- {
- settings[5] = true;
- Logger("Downgrader", "Process", "Copying the game folder before downgrading...");
- Logger("Downgrader", "Process", "App is not frozen, just busy right now...");
- try
- {
- try { Directory.Delete(path + "_Downgraded", true); } catch { }
- FileSystem.CopyFolder(path, path + "_Downgraded");
- path = path + "_Downgraded";
- Logger("NewGamePath", "Path", path);
- }
- catch { er = 0; Logger("NewGamePath", "Path", "false"); }
- }
- // Backup
- if (settings[0] == true)
- {
- settings[0] = true;
- Logger("Downgrader", "Process", "Create backups...");
- if (gv == 6) // 1.01
- {
+ }
+ }
+ if (settings[9] == true)
+ {
+ progress.SetText("MD5 verification progress");
+ progress.Report((double)i / fl.Length);
+ }
+ }
+ }
+ }
+ if (settings[8] == true)
+ {
+ Logger("Downgrader", "Process", "Forced downgrade mode is used...");
+ fisv = false;
+ gv = 6;
+ }
+ if (fisv == false)
+ {
+ if ((settings[5] == true) && ((gv == 1) || (gv == 3)))
+ {
+ settings[5] = true;
+ Logger("Downgrader", "Process", "Copying the game folder before downgrading...");
+ Logger("Downgrader", "Process", "App is not frozen, just busy right now...");
+ try
+ {
+ try { Directory.Delete(path + "_Downgraded", true); } catch { }
+ Folder.Copy(path, path + "_Downgraded");
+ path = path + "_Downgraded";
+ Logger("NewGamePath", "Path", path);
+ }
+ catch { er = 0; Logger("NewGamePath", "Path", "false"); }
+ }
+ // Backup
+ if (settings[0] == true)
+ {
+ settings[0] = true;
+ Logger("Downgrader", "Process", "Create backups...");
+ if (gv == 6) // 1.01
+ {
if (File.Exists(path + fl[1] + ".jpb"))
- File.Delete(path + fl[1] + ".jpb");
- try
+ File.Delete(path + fl[1] + ".jpb");
+ try
{
- File.Move(path + fl[1], path + fl[1] + ".jpb");
+ File.Move(path + fl[1], path + fl[1] + ".jpb");
Logger("GameBackup", path + fl[1], "Done!");
- }
- catch
- {
- er = 1;
- Logger("GameBackup", path + fl[1], "File for backup wasn't found!");
- }
- }
- if (gv == 3) // Rockstar Games Launcher
- {
- if (File.Exists(path + fl[1] + ".jpb"))
- File.Delete(path + fl[1] + ".jpb");
+ }
+ catch
+ {
+ er = 1;
+ Logger("GameBackup", path + fl[1], "File for backup wasn't found!");
+ }
+ }
+ if (gv == 3) // Rockstar Games Launcher
+ {
+ if (File.Exists(path + fl[1] + ".jpb"))
+ File.Delete(path + fl[1] + ".jpb");
try
{
- File.Move(path + fl[1], path + fl[1] + ".jpb");
+ File.Move(path + fl[1], path + fl[1] + ".jpb");
if (settings[9] == false)
- Logger("GameBackup", path + fl[1], "Done!");
- }
- catch { er = 1; if (settings[9] == false) { Logger("GameBackup", path + fl[1], "File for backup wasn't found!"); } }
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
+ Logger("GameBackup", path + fl[1], "Done!");
+ }
+ catch { er = 1; if (settings[9] == false) { Logger("GameBackup", path + fl[1], "File for backup wasn't found!"); } }
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
if (File.Exists(path + fl[i] + ".jpb"))
- File.Delete(path + fl[i] + ".jpb");
- try
- {
+ File.Delete(path + fl[i] + ".jpb");
+ try
+ {
File.Move(path + fl[i], path + fl[i] + ".jpb");
- if (settings[9] == false)
+ if (settings[9] == false)
{
progress.NotUsed(false);
Logger("GameBackup", path + fl[i], "Done!");
- }
- }
- catch
+ }
+ }
+ catch
{
er = 1;
if (settings[9] == false)
- {
- progress.NotUsed(false);
- Logger("GameBackup", path + fl[i], "File for backup wasn't found!");
+ {
+ progress.NotUsed(false);
+ Logger("GameBackup", path + fl[i], "File for backup wasn't found!");
}
- }
+ }
if (settings[9] == true)
- {
+ {
progress.SetText("Backup progress");
- progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (gv == 2) // Version 2.0
- {
+ progress.Report((double)i / fl.Length);
+ }
+ }
+ }
+ }
+ if (gv == 2) // Version 2.0
+ {
if (File.Exists(path + fl[1] + ".jpb"))
- File.Delete(path + fl[1] + ".jpb");
+ File.Delete(path + fl[1] + ".jpb");
try
- {
+ {
File.Move(path + fl[1], path + fl[1] + ".jpb");
if (settings[9] == false)
- Logger("GameBackup", path + fl[1], "Done!");
- }
+ Logger("GameBackup", path + fl[1], "Done!");
+ }
catch
{
er = 1;
if (settings[9] == false)
- Logger("GameBackup", path + fl[1], "File for backup wasn't found!");
- }
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- if ((i >= 2) && (i > 11))
- {
- if (File.Exists(path + fl[i] + ".jpb"))
- File.Delete(path + fl[i] + ".jpb");
+ Logger("GameBackup", path + fl[1], "File for backup wasn't found!");
+ }
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ if ((i >= 2) && (i > 11))
+ {
+ if (File.Exists(path + fl[i] + ".jpb"))
+ File.Delete(path + fl[i] + ".jpb");
try
{
File.Move(path + fl[i], path + fl[i] + ".jpb");
- if (settings[9] == false)
- {
+ if (settings[9] == false)
+ {
progress.NotUsed(false);
Logger("GameBackup", path + fl[i], "Done!");
}
- }
+ }
catch
{
er = 1;
- if (settings[9] == false)
- {
+ if (settings[9] == false)
+ {
progress.NotUsed(false);
- Logger("GameBackup", path + fl[i], "File for backup wasn't found!");
+ Logger("GameBackup", path + fl[i], "File for backup wasn't found!");
}
- }
- }
- if (settings[9] == true)
- {
- progress.SetText("Backup progress");
- progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (gv == 1) // Steam version
- {
+ }
+ }
+ if (settings[9] == true)
+ {
+ progress.SetText("Backup progress");
+ progress.Report((double)i / fl.Length);
+ }
+ }
+ }
+ }
+ if (gv == 1) // Steam version
+ {
if (File.Exists(path + fl[0] + ".jpb"))
- File.Delete(path + fl[0] + ".jpb");
- try
- {
- File.Move(path + fl[0], path + fl[0] + ".jpb");
+ File.Delete(path + fl[0] + ".jpb");
+ try
+ {
+ File.Move(path + fl[0], path + fl[0] + ".jpb");
if (settings[9] == false)
- Logger("GameBackup", path + fl[0], "Done!");
- }
- catch
- {
+ Logger("GameBackup", path + fl[0], "Done!");
+ }
+ catch
+ {
er = 1;
if (settings[9] == false)
- Logger("GameBackup", path + fl[0], "File for backup wasn't found!");
- }
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- if (i >= 2)
- {
+ Logger("GameBackup", path + fl[0], "File for backup wasn't found!");
+ }
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ if (i >= 2)
+ {
if (File.Exists(path + fl[i] + ".jpb"))
- File.Delete(path + fl[i] + ".jpb");
- try
+ File.Delete(path + fl[i] + ".jpb");
+ try
{
File.Move(path + fl[i], path + fl[i] + ".jpb");
- if (settings[9] == false)
+ if (settings[9] == false)
{
- progress.NotUsed(false);
+ progress.NotUsed(false);
Logger("GameBackup", path + fl[i], "Done!");
}
- }
+ }
catch
- {
- er = 1;
- if (settings[9] == false)
- {
+ {
+ er = 1;
+ if (settings[9] == false)
+ {
progress.NotUsed(false);
- Logger("GameBackup", path + fl[i], "File for backup wasn't found!");
+ Logger("GameBackup", path + fl[i], "File for backup wasn't found!");
}
- }
- }
- if (settings[9] == true)
- {
- progress.SetText("Backup progress");
- progress.Report((double)i / fl.Length);
- }
- }
- }
- }
+ }
+ }
+ if (settings[9] == true)
+ {
+ progress.SetText("Backup progress");
+ progress.Report((double)i / fl.Length);
+ }
+ }
+ }
+ }
if (er == 0)
Logger("GameBackup", "All", "true");
- }
- if (er == 0)
- {
- if (Directory.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches"))
- {
- bool all_patches = true;
- for (int i = 2; i < fl.Length; i++)
- {
+ }
+ if (er == 0)
+ {
+ if (Directory.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches"))
+ {
+ bool all_patches = true;
+ for (int i = 2; i < fl.Length; i++)
+ {
if (!File.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches" + fl[i] + ".jpp"))
all_patches = false;
- }
+ }
if (!File.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches\game.jpp"))
- all_patches = false;
- if (all_patches == true)
- {
- Logger("Downgrader", "Process", "Downgrading...");
- try
- {
- // For All Versions | EXE
- var restoreRGLfiles = new ProcessStartInfo
- {
- FileName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\7z.exe",
- Arguments = "x \"" + Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\patches\\game.jpp\" -o\"" + path + "\" -y",
- UseShellExecute = false,
- CreateNoWindow = true,
- };
- restoreRGLfiles.WindowStyle = ProcessWindowStyle.Hidden;
- Process.Start(restoreRGLfiles).WaitForExit();
- try { File.SetAttributes(path + fl[1], FileAttributes.Normal); } catch { }
- try { File.SetAttributes(path + @"\game.jpp", FileAttributes.Normal); } catch { }
- try { File.Delete(path + fl[1]); } catch { }
- File.Move(path + @"\game.jpp", path + fl[1]);
+ all_patches = false;
+ if (all_patches == true)
+ {
+ Logger("Downgrader", "Process", "Downgrading...");
+ try
+ {
+ // For All Versions | EXE
+ var restoreRGLfiles = new ProcessStartInfo
+ {
+ FileName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\7z.exe",
+ Arguments = "x \"" + Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\patches\\game.jpp\" -o\"" + path + "\" -y",
+ UseShellExecute = false,
+ CreateNoWindow = true,
+ };
+ restoreRGLfiles.WindowStyle = ProcessWindowStyle.Hidden;
+ Process.Start(restoreRGLfiles).WaitForExit();
+ try { File.SetAttributes(path + fl[1], FileAttributes.Normal); } catch { }
+ try { File.SetAttributes(path + @"\game.jpp", FileAttributes.Normal); } catch { }
+ try { File.Delete(path + fl[1]); } catch { }
+ File.Move(path + @"\game.jpp", path + fl[1]);
if (settings[9] == false)
- Logger("NewGame", path + fl[1], "1.0");
- if (gv == 1)
- {
- Process.Start(restoreRGLfiles).WaitForExit();
- try { File.SetAttributes(path + fl[0], FileAttributes.Normal); } catch { }
- try { File.SetAttributes(path + @"\game.jpp", FileAttributes.Normal); } catch { }
- try { File.Delete(path + fl[0]); } catch { }
- File.Move(path + @"\game.jpp", path + fl[0]);
+ Logger("NewGame", path + fl[1], "1.0");
+ if (gv == 1)
+ {
+ Process.Start(restoreRGLfiles).WaitForExit();
+ try { File.SetAttributes(path + fl[0], FileAttributes.Normal); } catch { }
+ try { File.SetAttributes(path + @"\game.jpp", FileAttributes.Normal); } catch { }
+ try { File.Delete(path + fl[0]); } catch { }
+ File.Move(path + @"\game.jpp", path + fl[0]);
if (settings[9] == false)
- Logger("NewGame", path + fl[0], "1.0");
- }
- if ((gv == 3) || (gv == 1)) // Rockstar Games Launcher & Steam
- {
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- string par = '"' + path + fl[i] + '"' + " " + '"' + Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches" + fl[i] + ".jpp" + '"' + " " + '"' + path + fl[i] + ".temp" + '"';
- if (settings[0] == true)
+ Logger("NewGame", path + fl[0], "1.0");
+ }
+ if ((gv == 3) || (gv == 1)) // Rockstar Games Launcher & Steam
+ {
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ string par = '"' + path + fl[i] + '"' + " " + '"' + Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches" + fl[i] + ".jpp" + '"' + " " + '"' + path + fl[i] + ".temp" + '"';
+ if (settings[0] == true)
par = '"' + path + fl[i] + ".jpb" + '"' + " " + '"' + Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches" + fl[i] + ".jpp" + '"' + " " + '"' + path + fl[i] + ".temp" + '"';
- Processes.RunAW(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patcher.exe", @par, false);
+ Processes.RunAW(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patcher.exe", @par, false);
if (settings[0] == false)
- File.Delete(path + fl[i]);
- File.Move(path + fl[i] + ".temp", path + fl[i]);
- if (settings[9] == false)
- {
- progress.NotUsed(false);
- Logger("NewGame", path + fl[i], "1.0");
- }
- if (settings[9] == true)
- {
+ File.Delete(path + fl[i]);
+ File.Move(path + fl[i] + ".temp", path + fl[i]);
+ if (settings[9] == false)
+ {
+ progress.NotUsed(false);
+ Logger("NewGame", path + fl[i], "1.0");
+ }
+ if (settings[9] == true)
+ {
progress.SetText("Downgrade progress");
progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (gv == 2) // 2.0
- {
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- if ((i >= 2) && (i > 11))
- {
- string par = '"' + path + fl[i] + '"' + " " + '"' + Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches" + fl[i] + ".jpp" + '"' + " " + '"' + path + fl[i] + ".temp" + '"';
+ }
+ }
+ }
+ }
+ if (gv == 2) // 2.0
+ {
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ if ((i >= 2) && (i > 11))
+ {
+ string par = '"' + path + fl[i] + '"' + " " + '"' + Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches" + fl[i] + ".jpp" + '"' + " " + '"' + path + fl[i] + ".temp" + '"';
if (settings[0] == true)
- par = '"' + path + fl[i] + ".jpb" + '"' + " " + '"' + Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches" + fl[i] + ".jpp" + '"' + " " + '"' + path + fl[i] + ".temp" + '"';
- Processes.RunAW(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patcher.exe", @par, false);
+ par = '"' + path + fl[i] + ".jpb" + '"' + " " + '"' + Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patches" + fl[i] + ".jpp" + '"' + " " + '"' + path + fl[i] + ".temp" + '"';
+ Processes.RunAW(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\patcher.exe", @par, false);
if (settings[0] == false)
- File.Delete(path + fl[i]);
- File.Move(path + fl[i] + ".temp", path + fl[i]);
+ File.Delete(path + fl[i]);
+ File.Move(path + fl[i] + ".temp", path + fl[i]);
if (settings[9] == false)
{
progress.NotUsed(false);
- Logger("NewGame", path + fl[i], "1.0");
- }
- }
- if (settings[9] == true)
- {
- progress.SetText("Downgrade progress");
+ Logger("NewGame", path + fl[i], "1.0");
+ }
+ }
+ if (settings[9] == true)
+ {
+ progress.SetText("Downgrade progress");
progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- }
- catch { er = 1; Logger("NewGame", "All", "An error occurred accessing the game files!"); }
- if (er == 0)
- {
- Logger("NewGame", "All", "1.0");
+ }
+ }
+ }
+ }
+ }
+ catch { er = 1; Logger("NewGame", "All", "An error occurred accessing the game files!"); }
+ if (er == 0)
+ {
+ Logger("NewGame", "All", "1.0");
if (settings[0] == true)
- Logger("NewGameReadOnly", "All", "true");
- // Checking files after downgrade (MD5)
- Logger("Downgrader", "Process", "Checking files after downgrade (MD5)...");
- if (gv == 6) // 1.01
- {
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[1]);
- Logger("NewGameMD5", path + fl[1], GameMD5);
+ Logger("NewGameReadOnly", "All", "true");
+ // Checking files after downgrade (MD5)
+ Logger("Downgrader", "Process", "Checking files after downgrade (MD5)...");
+ if (gv == 6) // 1.01
+ {
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[1]);
+ Logger("NewGameMD5", path + fl[1], GameMD5);
if (GameMD5 == flmd5[0])
- {
- fisv = true;
+ {
+ fisv = true;
Logger("NewGameMD5", path + fl[1], "1.0");
- }
- else
- {
+ }
+ else
+ {
fisv = false;
- Logger("NewGameMD5", path + fl[1], "Higher than 1.0!");
- }
- }
- catch
- {
- fisv = false;
- Logger("NewGameMD5", path + fl[1], "File not found!");
- }
- }
- if (gv == 3) // Rockstar Games Launcher
- {
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[1]);
+ Logger("NewGameMD5", path + fl[1], "Higher than 1.0!");
+ }
+ }
+ catch
+ {
+ fisv = false;
+ Logger("NewGameMD5", path + fl[1], "File not found!");
+ }
+ }
+ if (gv == 3) // Rockstar Games Launcher
+ {
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[1]);
if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], GameMD5);
+ Logger("NewGameMD5", path + fl[1], GameMD5);
if (GameMD5 == flmd5[0])
- {
+ {
fisv = true;
- if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], "1.0");
- }
- else
+ if (settings[9] == false)
+ Logger("NewGameMD5", path + fl[1], "1.0");
+ }
+ else
{
fisv = false;
if (settings[9] == false)
Logger("NewGameMD5", path + fl[1], "Higher than 1.0!");
- }
- }
- catch
- {
- fisv = false;
+ }
+ }
+ catch
+ {
+ fisv = false;
if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], "File not found!");
- }
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[i]);
- if (settings[9] == false)
- {
- progress.NotUsed(false);
- Logger("NewGameMD5", path + fl[i], GameMD5);
- }
- if (GameMD5 == flmd5[i])
- {
- fisv = true;
+ Logger("NewGameMD5", path + fl[1], "File not found!");
+ }
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[i]);
+ if (settings[9] == false)
+ {
+ progress.NotUsed(false);
+ Logger("NewGameMD5", path + fl[i], GameMD5);
+ }
+ if (GameMD5 == flmd5[i])
+ {
+ fisv = true;
if (settings[9] == false)
- {
+ {
progress.NotUsed(false);
Logger("NewGameMD5", path + fl[i], "1.0");
- }
- }
- else
- {
- fisv = false;
+ }
+ }
+ else
+ {
+ fisv = false;
if (settings[9] == false)
- {
- progress.NotUsed(false);
+ {
+ progress.NotUsed(false);
Logger("NewGameMD5", path + fl[i], "Higher than 1.0!");
- }
- }
- }
+ }
+ }
+ }
catch
{
- fisv = false;
+ fisv = false;
if (settings[9] == false)
- {
+ {
progress.NotUsed(false);
- Logger("NewGameMD5", path + fl[i], "File not found!");
+ Logger("NewGameMD5", path + fl[i], "File not found!");
}
- }
+ }
if (settings[9] == true)
- {
+ {
progress.SetText("MD5 verification progress");
- progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (gv == 2) // 2.0
- {
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[1]);
+ progress.Report((double)i / fl.Length);
+ }
+ }
+ }
+ }
+ if (gv == 2) // 2.0
+ {
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[1]);
if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], GameMD5);
+ Logger("NewGameMD5", path + fl[1], GameMD5);
if (GameMD5 == flmd5[0])
- {
- fisv = true;
- if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], "1.0");
- }
+ {
+ fisv = true;
+ if (settings[9] == false)
+ Logger("NewGameMD5", path + fl[1], "1.0");
+ }
else
- {
+ {
fisv = false;
if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], "Higher than 1.0!");
- }
- }
- catch
- {
+ Logger("NewGameMD5", path + fl[1], "Higher than 1.0!");
+ }
+ }
+ catch
+ {
fisv = false;
- if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], "File not found!");
- }
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- if ((i >= 2) && (i > 11))
- {
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[i]);
+ if (settings[9] == false)
+ Logger("NewGameMD5", path + fl[1], "File not found!");
+ }
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ if ((i >= 2) && (i > 11))
+ {
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[i]);
if (settings[9] == false)
{
- progress.NotUsed(false);
- Logger("NewGameMD5", path + fl[i], GameMD5);
- }
+ progress.NotUsed(false);
+ Logger("NewGameMD5", path + fl[i], GameMD5);
+ }
if (GameMD5 == flmd5[i])
- {
+ {
fisv = true;
- if (settings[9] == false)
- {
- progress.NotUsed(false);
+ if (settings[9] == false)
+ {
+ progress.NotUsed(false);
Logger("NewGameMD5", path + fl[i], "1.0");
- }
- }
- else
+ }
+ }
+ else
{
- fisv = false;
- if (settings[9] == false)
- {
- progress.NotUsed(false);
+ fisv = false;
+ if (settings[9] == false)
+ {
+ progress.NotUsed(false);
Logger("NewGameMD5", path + fl[i], "Higher than 1.0!");
- }
- }
- }
- catch
- {
- fisv = false;
+ }
+ }
+ }
+ catch
+ {
+ fisv = false;
if (settings[9] == false)
- {
- progress.NotUsed(false);
- Logger("NewGameMD5", path + fl[i], "File not found!");
+ {
+ progress.NotUsed(false);
+ Logger("NewGameMD5", path + fl[i], "File not found!");
}
- }
- }
- if (settings[9] == true)
- {
- progress.SetText("MD5 verification progress");
+ }
+ }
+ if (settings[9] == true)
+ {
+ progress.SetText("MD5 verification progress");
progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (gv == 1) // Steam
- {
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[0]);
+ }
+ }
+ }
+ }
+ if (gv == 1) // Steam
+ {
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[0]);
if (settings[9] == false)
- Logger("NewGameMD5", path + fl[0], GameMD5);
+ Logger("NewGameMD5", path + fl[0], GameMD5);
if (GameMD5 == flmd5[0])
- {
+ {
fisv = true;
- if (settings[9] == false)
- Logger("NewGameMD5", path + fl[0], "1.0");
- }
- else
- {
+ if (settings[9] == false)
+ Logger("NewGameMD5", path + fl[0], "1.0");
+ }
+ else
+ {
fisv = false;
- if (settings[9] == false)
- Logger("NewGameMD5", path + fl[0], "Higher than 1.0!");
- }
- }
- catch
+ if (settings[9] == false)
+ Logger("NewGameMD5", path + fl[0], "Higher than 1.0!");
+ }
+ }
+ catch
{
fisv = false;
if (settings[9] == false)
- Logger("NewGameMD5", path + fl[0], "File not found!");
- }
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[1]);
+ Logger("NewGameMD5", path + fl[0], "File not found!");
+ }
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[1]);
if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], GameMD5);
- if (GameMD5 == flmd5[0])
- {
+ Logger("NewGameMD5", path + fl[1], GameMD5);
+ if (GameMD5 == flmd5[0])
+ {
fisv = true;
if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], "1.0");
- }
+ Logger("NewGameMD5", path + fl[1], "1.0");
+ }
else
{
fisv = false;
if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], "Higher than 1.0!");
- }
- }
+ Logger("NewGameMD5", path + fl[1], "Higher than 1.0!");
+ }
+ }
catch
- {
- fisv = false;
- if (settings[9] == false)
- Logger("NewGameMD5", path + fl[1], "File not found!");
- }
- using (var progress = new Type1())
- {
- for (int i = 2; i < fl.Length; i++)
- {
- progress.SetColor(ConsoleColor.Blue);
- try
- {
- GameMD5 = FileSystem.GetFileMD5(path + fl[i]);
+ {
+ fisv = false;
+ if (settings[9] == false)
+ Logger("NewGameMD5", path + fl[1], "File not found!");
+ }
+ using (var progress = new Type1())
+ {
+ for (int i = 2; i < fl.Length; i++)
+ {
+ progress.SetColor(ConsoleColor.Blue);
+ try
+ {
+ GameMD5 = VitNX.Functions.FileSystem.File.GetMD5(path + fl[i]);
if (settings[9] == false)
{
progress.NotUsed(false);
- Logger("NewGameMD5", path + fl[i], GameMD5);
- }
+ Logger("NewGameMD5", path + fl[i], GameMD5);
+ }
if (GameMD5 == flmd5[i])
{
fisv = true;
if (settings[9] == false)
- {
- progress.NotUsed(false);
- Logger("NewGameMD5", path + fl[i], "1.0");
- }
- }
+ {
+ progress.NotUsed(false);
+ Logger("NewGameMD5", path + fl[i], "1.0");
+ }
+ }
else
- {
- fisv = false;
+ {
+ fisv = false;
if (settings[9] == false)
- {
- progress.NotUsed(false);
- Logger("NewGameMD5", path + fl[i], "Higher than 1.0!");
+ {
+ progress.NotUsed(false);
+ Logger("NewGameMD5", path + fl[i], "Higher than 1.0!");
}
- }
- }
+ }
+ }
catch
{
fisv = false;
- if (settings[9] == false)
- {
- progress.NotUsed(false);
+ if (settings[9] == false)
+ {
+ progress.NotUsed(false);
Logger("NewGameMD5", path + fl[i], "File not found!");
}
- }
+ }
if (settings[9] == true)
{
- progress.SetText("MD5 verification progress");
+ progress.SetText("MD5 verification progress");
progress.Report((double)i / fl.Length);
- }
- }
- }
- }
- if (fisv == true)
- {
- Logger("NewGameMD5", "All", "true");
- Logger("Downgrader", "Game", "Downgrade completed!");
- if (File.Exists(path + @"\index.bin") || File.Exists(path + @"\MTLX.dll"))
- {
- if ((settings[3] == true) && (gv == 3))
- {
- Logger("Downgrader", "Process", "Deleting index.bin file...");
- try
- {
- if (File.Exists(path + @"\index.bin"))
- {
+ }
+ }
+ }
+ }
+ if (fisv == true)
+ {
+ Logger("NewGameMD5", "All", "true");
+ Logger("Downgrader", "Game", "Downgrade completed!");
+ if (File.Exists(path + @"\index.bin") || File.Exists(path + @"\MTLX.dll"))
+ {
+ if ((settings[3] == true) && (gv == 3))
+ {
+ Logger("Downgrader", "Process", "Deleting index.bin file...");
+ try
+ {
+ if (File.Exists(path + @"\index.bin"))
+ {
File.Delete(path + @"\index.bin");
Logger("GarbageCleaning", "index.bin", "true");
- }
+ }
else
- Logger("GarbageCleaning", "index.bin", "false");
- }
- catch { Logger("GarbageCleaning", "index.bin", "false"); }
- Logger("Downgrader", "Process", "Deleting MTLX.dll file...");
- try
- {
- if (File.Exists(path + @"\MTLX.dll"))
- {
- File.Delete(path + @"\MTLX.dll");
+ Logger("GarbageCleaning", "index.bin", "false");
+ }
+ catch { Logger("GarbageCleaning", "index.bin", "false"); }
+ Logger("Downgrader", "Process", "Deleting MTLX.dll file...");
+ try
+ {
+ if (File.Exists(path + @"\MTLX.dll"))
+ {
+ File.Delete(path + @"\MTLX.dll");
Logger("GarbageCleaning", "MTLX.dll", "true");
- }
+ }
else
- Logger("GarbageCleaning", "MTLX.dll", "false");
- }
- catch { Logger("GarbageCleaning", "MTLX.dll", "false"); }
- }
- }
- if (settings[1] == true)
- {
- Logger("Downgrader", "Process", "Creating a shortcut...");
- try
- {
- FileSystem.CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\GTA San Andreas 1.0.lnk", path + @"\gta_sa.exe", "gta_sa");
- Logger("Downgrader", "CreateShortcut", "true");
- }
- catch { Logger("Downgrader", "CreateShortcut", "false"); }
- }
- if (settings[4] == true)
- {
- Logger("Downgrader", "Process", "Adding entries to the registry...");
- try
- {
+ Logger("GarbageCleaning", "MTLX.dll", "false");
+ }
+ catch { Logger("GarbageCleaning", "MTLX.dll", "false"); }
+ }
+ }
+ if (settings[1] == true)
+ {
+ Logger("Downgrader", "Process", "Creating a shortcut...");
+ try
+ {
+ VitNX.Functions.FileSystem.File.CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\GTA San Andreas 1.0.lnk", path + @"\gta_sa.exe", "gta_sa");
+ Logger("Downgrader", "CreateShortcut", "true");
+ }
+ catch { Logger("Downgrader", "CreateShortcut", "false"); }
+ }
+ if (settings[4] == true)
+ {
+ Logger("Downgrader", "Process", "Adding entries to the registry...");
+ try
+ {
if (Windows.Is64bit() == true)
{
Registry.LocalMachine.CreateSubKey(@"SOFTWARE\WOW6432Node\Rockstar Games\GTA San Andreas\Installation");
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Rockstar Games\GTA San Andreas\Installation", "ExePath", "\"" + path + "\"");
- }
- Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Rockstar Games\GTA San Andreas\Installation");
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Rockstar Games\GTA San Andreas\Installation", "ExePath", "\"" + path + "\"");
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Rockstar Games\GTA San Andreas\Installation", "Installed", "1");
- Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Rockstar Games\Launcher");
- Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Rockstar Games\Launcher", "Language", "en-US");
- Logger("Downgrader", "RegisterGamePath", "true");
- }
- catch { Logger("Downgrader", "RegisterGamePath", "false"); }
- }
- }
+ }
+ Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Rockstar Games\GTA San Andreas\Installation");
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Rockstar Games\GTA San Andreas\Installation", "ExePath", "\"" + path + "\"");
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Rockstar Games\GTA San Andreas\Installation", "Installed", "1");
+ Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Rockstar Games\Launcher");
+ Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Rockstar Games\Launcher", "Language", "en-US");
+ Logger("Downgrader", "RegisterGamePath", "true");
+ }
+ catch { Logger("Downgrader", "RegisterGamePath", "false"); }
+ }
+ }
else
{
Logger("NewGameMD5", "All", "false");
Logger("Downgrader", "Game", "Error checking files!");
- Logger("Downgrader", "Game", "Please check the original files and, if necessary, reinstall the game!");
- }
- }
- }
+ Logger("Downgrader", "Game", "Please check the original files and, if necessary, reinstall the game!");
+ }
+ }
+ }
else
Logger("Downgrader", "NewGame", "Please make sure that you have downloaded the patches, otherwise, the downgrader will not be able to start its work!");
- }
- else
- Logger("Downgrader", "NewGame", "Please make sure that you have downloaded the patches, otherwise, the downgrader will not be able to start its work!");
- }
- else
- {
- Logger("GameBackup", "All", "Some game files were not found, so it is not possible to continue working!");
+ }
+ else
+ Logger("Downgrader", "NewGame", "Please make sure that you have downloaded the patches, otherwise, the downgrader will not be able to start its work!");
+ }
+ else
+ {
+ Logger("GameBackup", "All", "Some game files were not found, so it is not possible to continue working!");
Logger("Downgrader", "Game", "Please check the original files and, if necessary, reinstall the game!");
- }
- }
+ }
+ }
else
{
Logger("GameMD5", "All", "It is impossible to determine exactly which version some files are taken from, because some of them have 1.0, and others are Higher than 1.0!!");
Logger("Downgrader", "Game", "Please check the original files and, if necessary, reinstall the game!");
- }
- }
+ }
+ }
else
{
Logger("Game", "All", "Some game files were not found, so it is not possible to continue working!");
- Logger("Downgrader", "Game", "Please check the original files and, if necessary, reinstall the game!");
- }
- }
+ Logger("Downgrader", "Game", "Please check the original files and, if necessary, reinstall the game!");
+ }
+ }
if (gv == 0)
- Logger("Downgrader", "Process", "Downgrade is not required!");
- }
+ Logger("Downgrader", "Process", "Downgrade is not required!");
+ }
else
- Logger("Game", "Path", "false");
- }
+ Logger("Game", "Path", "false");
+ }
else
- Logger("Downgrader", "Process", "File patcher.exe was not found!");
- Logger("GamePath", "Current", path);
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine("Downgrade Completed!");
- Console.ForegroundColor = ConsoleColor.Yellow;
- Console.WriteLine("Press Enter to Exit");
- Console.ResetColor();
+ Logger("Downgrader", "Process", "File patcher.exe was not found!");
+ Logger("GamePath", "Current", path);
+ Console.ForegroundColor = ConsoleColor.Green;
+ Console.WriteLine("Downgrade Completed!");
+ Console.ForegroundColor = ConsoleColor.Yellow;
+ Console.WriteLine("Press Enter to Exit");
+ Console.ResetColor();
Import.SetWindowPos(Process.GetCurrentProcess().MainWindowHandle,
- new IntPtr((int)Enums.WindowPosFlags.HWND_TOPMOST), 0, 0, 0, 0,
- (int)Enums.WindowPosFlags.SWP_NOMOVE | (int)Enums.WindowPosFlags.SWP_NOSIZE);
- Console.ReadLine();
- }
-
- private static void Logger(string type, string ido, string status)
- {
+ new IntPtr((int)Constants.HWND_TOPMOST), 0, 0, 0, 0,
+ (int)0X2 | (int)1);
+ Console.ReadLine();
+ }
+
+ private static void Logger(string type, string ido, string status)
+ {
if ((type == "NewGameMD5") || ((type == "GamePath") && (ido == "Current")))
- Console.ForegroundColor = ConsoleColor.Yellow;
+ Console.ForegroundColor = ConsoleColor.Yellow;
if ((type == "NewGamePath") || (status == "Forced downgrade mode is used...") ||
(status == "Installation completed successfully") || (status == "1.0") ||
(status == "true") || (status == "Downgrade completed!") ||
- (status == "Done!"))
- Console.ForegroundColor = ConsoleColor.Green;
- if ((status == "Deleting MTLX.dll file...") || (status == "Deleting index.bin file...") ||
+ (status == "Done!"))
+ Console.ForegroundColor = ConsoleColor.Green;
+ if ((status == "Deleting MTLX.dll file...") || (status == "Deleting index.bin file...") ||
(status == "Deleting gta_sa.set (Public Documents) file...") ||
- (status == "Deleting gta_sa.set (Documents) file...") || (status == "Adding entries to the registry...") ||
- (status == "Creating a shortcut...") || (status == "Checking files after downgrade (MD5)...") ||
- (status == "Downgrading...") || (status == "Create backups...") ||
- (status == "Checking original files before downgrade (MD5)...") || (status == "Scanning files...") ||
- (status == "Get version (EXE)...") || (status == "Copying the game folder before downgrading...") ||
- (status == "App is not frozen, just busy right now...") || (status == "Downloading installer...") ||
+ (status == "Deleting gta_sa.set (Documents) file...") || (status == "Adding entries to the registry...") ||
+ (status == "Creating a shortcut...") || (status == "Checking files after downgrade (MD5)...") ||
+ (status == "Downgrading...") || (status == "Create backups...") ||
+ (status == "Checking original files before downgrade (MD5)...") || (status == "Scanning files...") ||
+ (status == "Get version (EXE)...") || (status == "Copying the game folder before downgrading...") ||
+ (status == "App is not frozen, just busy right now...") || (status == "Downloading installer...") ||
(status == "Installing...") || (status == "In process...") || (status == "Preparing installer..."))
- Console.ForegroundColor = ConsoleColor.Blue;
- if (((type == "GameMD5") && (status != "Higher than 1.0!") && (status != "1.0")) ||
+ Console.ForegroundColor = ConsoleColor.Blue;
+ if (((type == "GameMD5") && (status != "Higher than 1.0!") && (status != "1.0")) ||
(ido == "Guide if DirectPlay not work") || ((type == "GamePath") && (ido == "new")) ||
- (status == "Rockstar Games Launcher") || (status == "Steam") || (status == "1.01") ||
+ (status == "Rockstar Games Launcher") || (status == "Steam") || (status == "1.01") ||
(status == "2.0"))
- Console.ForegroundColor = ConsoleColor.Yellow;
- if ((status == "Installation error") || ((type == "Game") && (ido == "Path") && (status == "null")) ||
- (status == "Please make sure that you have downloaded the patches (patches folder), otherwise, the downgrader will not be able to start its work!") ||
- (status == "File patcher.exe was not found!") || (status == "File not found!") || (status == "Higher than 1.0!") ||
- (status == "Unknown [NOT SUPPORTED]") || (status == "Unknown [ERROR]") || (status == "false") ||
- (status == "File for backup wasn't found!") || (status == "Please make sure that you have downloaded the patches, otherwise, the downgrader will not be able to start its work!") ||
+ Console.ForegroundColor = ConsoleColor.Yellow;
+ if ((status == "Installation error") || ((type == "Game") && (ido == "Path") && (status == "null")) ||
+ (status == "Please make sure that you have downloaded the patches (patches folder), otherwise, the downgrader will not be able to start its work!") ||
+ (status == "File patcher.exe was not found!") || (status == "File not found!") || (status == "Higher than 1.0!") ||
+ (status == "Unknown [NOT SUPPORTED]") || (status == "Unknown [ERROR]") || (status == "false") ||
+ (status == "File for backup wasn't found!") || (status == "Please make sure that you have downloaded the patches, otherwise, the downgrader will not be able to start its work!") ||
(status == "Downgrade is not possible!") || (status == "An error occurred accessing the game files!"))
- Console.ForegroundColor = ConsoleColor.Red;
+ Console.ForegroundColor = ConsoleColor.Red;
if (((type == "GameMD5") && (status == "Higher than 1.0!")) || (status == "Downgrade is not required!"))
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine("[" + type + "] " + ido + "=" + status);
- Console.ResetColor();
- }
- }
+ Console.ForegroundColor = ConsoleColor.Green;
+ Console.WriteLine("[" + type + "] " + ido + "=" + status);
+ Console.ResetColor();
+ }
+ }
}
\ No newline at end of file
diff --git a/sources/Downgrader/Properties/AssemblyInfo.cs b/sources/Downgrader/Properties/AssemblyInfo.cs
index 70da2e4..fbb9987 100644
--- a/sources/Downgrader/Properties/AssemblyInfo.cs
+++ b/sources/Downgrader/Properties/AssemblyInfo.cs
@@ -7,8 +7,8 @@
[assembly: AssemblyCompany("Zalexanninev15")]
[assembly: AssemblyProduct("Jetpack Downgrader")]
[assembly: AssemblyCopyright("Copyright © 2020-2022, Zalexanninev15")]
-[assembly: AssemblyTrademark("Jetpack Downgrader (2020-2022)")]
+[assembly: AssemblyTrademark("Jetpack Downgrader (2020-2024)")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
-[assembly: AssemblyVersion("1.16.2.0")]
-[assembly: AssemblyFileVersion("1.16.2.0")]
\ No newline at end of file
+[assembly: AssemblyVersion("1.16.3.0")]
+[assembly: AssemblyFileVersion("1.16.3.0")]
\ No newline at end of file
diff --git a/sources/GUI/GUI.csproj b/sources/GUI/GUI.csproj
index 5b61e01..5f3360b 100644
--- a/sources/GUI/GUI.csproj
+++ b/sources/GUI/GUI.csproj
@@ -84,11 +84,11 @@
-
- ..\packages\MegaApiClient.1.9.0\lib\net46\MegaApiClient.dll
+
+ ..\packages\MegaApiClient.1.10.3\lib\net471\MegaApiClient.dll
- ..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll
+ ..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll
@@ -96,11 +96,12 @@
+
- ..\..\..\VitNX\source\VitNX\bin\Debug\VitNX2.dll
+ ..\..\..\..\..\Downloads\VitNX2.dll
diff --git a/sources/GUI/MainForm.Designer.cs b/sources/GUI/MainForm.Designer.cs
index f585106..101c20b 100644
--- a/sources/GUI/MainForm.Designer.cs
+++ b/sources/GUI/MainForm.Designer.cs
@@ -1,101 +1,101 @@
-
-namespace JetpackGUI
-{
- partial class MainForm
- {
- ///
- /// Required designer variable.
- ///
- System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- void InitializeComponent()
- {
+
+namespace JetpackGUI
+{
+ partial class MainForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ void InitializeComponent()
+ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.progressPanel = new System.Windows.Forms.Panel();
this.play = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
- this.darkButton5 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.AllProgressBar = new VitNX.UI.ControlsV1.VitNX_ProgressBar();
- this.PartProgressBar = new VitNX.UI.ControlsV1.VitNX_ProgressBar();
- this.darkListView2 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_ListView();
- this.labelAllProgress = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
- this.DebugInfo = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
- this.labelPartProgress = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
+ this.darkButton5 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.AllProgressBar = new VitNX.UI.ControlsV2.VitNX2_ProgressBar();
+ this.PartProgressBar = new VitNX.UI.ControlsV2.VitNX2_ProgressBar();
+ this.darkListView2 = new VitNX.UI.ControlsV1.Controls.VitNX_ListView();
+ this.labelAllProgress = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
+ this.DebugInfo = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
+ this.labelPartProgress = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
this.stagesPanel = new System.Windows.Forms.Panel();
this.pictureBox9 = new System.Windows.Forms.PictureBox();
this.pictureBox8 = new System.Windows.Forms.PictureBox();
- this.darkButton4 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.button2 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.button6 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
+ this.darkButton4 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.button2 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.button6 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
this.button1 = new System.Windows.Forms.Button();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.LangsPanel = new System.Windows.Forms.Panel();
- this.darkComboBox2 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_ComboBox();
- this.darkLabel1 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
+ this.darkComboBox2 = new VitNX.UI.ControlsV1.Controls.VitNX_ComboBox();
+ this.darkLabel1 = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
this.label2 = new System.Windows.Forms.Label();
this.HelloUser = new System.Windows.Forms.Label();
- this.DSPanel = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_SectionPanel();
- this.ModsPanel = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_SectionPanel();
- this.darkLabel2 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
+ this.DSPanel = new VitNX.UI.ControlsV1.Controls.VitNX_SectionPanel();
+ this.ModsPanel = new VitNX.UI.ControlsV1.Controls.VitNX_SectionPanel();
+ this.darkLabel2 = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
this.modsList = new System.Windows.Forms.ListBox();
- this.darkGroupBox1 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_GroupBox();
+ this.darkGroupBox1 = new VitNX.UI.ControlsV1.Controls.VitNX_GroupBox();
this.ScreenShotViewer = new System.Windows.Forms.Panel();
- this.vitNX_Button1 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.darkButton8 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.darkButton9 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.darkButton7 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
+ this.vitNX_Button1 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.darkButton8 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.darkButton9 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.darkButton7 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
this.ScreenShotInViewer = new System.Windows.Forms.PictureBox();
- this.darkGroupBox2 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_GroupBox();
- this.darkLabel4 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
- this.darkButton3 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.darkButton2 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.darkButton1 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
+ this.darkGroupBox2 = new VitNX.UI.ControlsV1.Controls.VitNX_GroupBox();
+ this.darkLabel4 = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
+ this.darkButton3 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.darkButton2 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.darkButton1 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
this.ScreenShot = new System.Windows.Forms.PictureBox();
- this.YesInstallMe = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox();
- this.darkLabel6 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
- this.darkLabel5 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
- this.nameLabel = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
- this.darkButton6 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.darkLabel9 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
+ this.YesInstallMe = new VitNX.UI.ControlsV1.Controls.VitNX_CheckBox();
+ this.darkLabel6 = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
+ this.darkLabel5 = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
+ this.nameLabel = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
+ this.darkButton6 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.darkLabel9 = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
this.darkTitle2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.darkTitle1 = new System.Windows.Forms.Label();
- this.originalGameRestoreProgressBar = new VitNX.UI.ControlsV1.VitNX_ProgressBar();
- this.checkBox1 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox();
+ this.originalGameRestoreProgressBar = new VitNX.UI.ControlsV2.VitNX2_ProgressBar();
+ this.checkBox1 = new VitNX.UI.ControlsV1.Controls.VitNX_CheckBox();
this.pictureBox15 = new System.Windows.Forms.PictureBox();
this.pictureBox11 = new System.Windows.Forms.PictureBox();
this.pictureBox10 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
- this.GamePath = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_TextBox();
- this.checkBox2 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox();
- this.checkBox9 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox();
- this.checkBox4 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox();
- this.checkBox8 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox();
- this.checkBox6 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox();
- this.checkBox7 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox();
- this.checkBox3 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox();
- this.checkBox5 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox();
+ this.GamePath = new VitNX.UI.ControlsV1.Controls.VitNX_TextBox();
+ this.checkBox2 = new VitNX.UI.ControlsV1.Controls.VitNX_CheckBox();
+ this.checkBox9 = new VitNX.UI.ControlsV1.Controls.VitNX_CheckBox();
+ this.checkBox4 = new VitNX.UI.ControlsV1.Controls.VitNX_CheckBox();
+ this.checkBox8 = new VitNX.UI.ControlsV1.Controls.VitNX_CheckBox();
+ this.checkBox6 = new VitNX.UI.ControlsV1.Controls.VitNX_CheckBox();
+ this.checkBox7 = new VitNX.UI.ControlsV1.Controls.VitNX_CheckBox();
+ this.checkBox3 = new VitNX.UI.ControlsV1.Controls.VitNX_CheckBox();
+ this.checkBox5 = new VitNX.UI.ControlsV1.Controls.VitNX_CheckBox();
this.pictureBox12 = new System.Windows.Forms.PictureBox();
this.pictureBox7 = new System.Windows.Forms.PictureBox();
this.pictureBox6 = new System.Windows.Forms.PictureBox();
@@ -204,7 +204,7 @@ void InitializeComponent()
this.AllProgressBar.TextColor = System.Drawing.Color.Black;
this.AllProgressBar.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.AllProgressBar.Visible = false;
- this.AllProgressBar.VisualMode = VitNX.UI.ControlsV1.VitNX_ProgressBarDisplayMode.Percentage;
+ this.AllProgressBar.VisualMode = VitNX.UI.ControlsV2.VitNX2_ProgressBar.Percentage;
//
// PartProgressBar
//
@@ -1100,80 +1100,80 @@ void InitializeComponent()
((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit();
this.ResumeLayout(false);
- }
-
- #endregion
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_TextBox GamePath;
- System.Windows.Forms.PictureBox pictureBox1;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox checkBox1;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox checkBox2;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox checkBox9;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox checkBox4;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox checkBox6;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox checkBox3;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox checkBox5;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox checkBox7;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox checkBox8;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_SectionPanel DSPanel;
- System.Windows.Forms.PictureBox pictureBox3;
- System.Windows.Forms.PictureBox pictureBox4;
- System.Windows.Forms.PictureBox pictureBox5;
- System.Windows.Forms.PictureBox pictureBox6;
- System.Windows.Forms.PictureBox pictureBox7;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_SectionPanel ModsPanel;
- System.Windows.Forms.Panel stagesPanel;
- System.Windows.Forms.PictureBox pictureBox2;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button button2;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button button6;
- System.Windows.Forms.Button button1;
- System.Windows.Forms.Panel LangsPanel;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label darkLabel1;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_GroupBox darkGroupBox1;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_CheckBox YesInstallMe;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label nameLabel;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label darkLabel4;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label darkLabel5;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label darkLabel6;
- System.Windows.Forms.PictureBox ScreenShot;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton1;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton2;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label darkLabel9;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton3;
+ }
+
+ #endregion
+ VitNX.UI.ControlsV1.Controls.VitNX_TextBox GamePath;
+ System.Windows.Forms.PictureBox pictureBox1;
+ VitNX.UI.ControlsV1.Controls.VitNX_CheckBox checkBox1;
+ VitNX.UI.ControlsV1.Controls.VitNX_CheckBox checkBox2;
+ VitNX.UI.ControlsV1.Controls.VitNX_CheckBox checkBox9;
+ VitNX.UI.ControlsV1.Controls.VitNX_CheckBox checkBox4;
+ VitNX.UI.ControlsV1.Controls.VitNX_CheckBox checkBox6;
+ VitNX.UI.ControlsV1.Controls.VitNX_CheckBox checkBox3;
+ VitNX.UI.ControlsV1.Controls.VitNX_CheckBox checkBox5;
+ VitNX.UI.ControlsV1.Controls.VitNX_CheckBox checkBox7;
+ VitNX.UI.ControlsV1.Controls.VitNX_CheckBox checkBox8;
+ VitNX.UI.ControlsV1.Controls.VitNX_SectionPanel DSPanel;
+ System.Windows.Forms.PictureBox pictureBox3;
+ System.Windows.Forms.PictureBox pictureBox4;
+ System.Windows.Forms.PictureBox pictureBox5;
+ System.Windows.Forms.PictureBox pictureBox6;
+ System.Windows.Forms.PictureBox pictureBox7;
+ VitNX.UI.ControlsV1.Controls.VitNX_SectionPanel ModsPanel;
+ System.Windows.Forms.Panel stagesPanel;
+ System.Windows.Forms.PictureBox pictureBox2;
+ VitNX.UI.ControlsV1.Controls.VitNX_Button button2;
+ VitNX.UI.ControlsV1.Controls.VitNX_Button button6;
+ System.Windows.Forms.Button button1;
+ System.Windows.Forms.Panel LangsPanel;
+ VitNX.UI.ControlsV1.Controls.VitNX_Label darkLabel1;
+ VitNX.UI.ControlsV1.Controls.VitNX_GroupBox darkGroupBox1;
+ VitNX.UI.ControlsV1.Controls.VitNX_CheckBox YesInstallMe;
+ VitNX.UI.ControlsV1.Controls.VitNX_Label nameLabel;
+ VitNX.UI.ControlsV1.Controls.VitNX_Label darkLabel4;
+ VitNX.UI.ControlsV1.Controls.VitNX_Label darkLabel5;
+ VitNX.UI.ControlsV1.Controls.VitNX_Label darkLabel6;
+ System.Windows.Forms.PictureBox ScreenShot;
+ VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton1;
+ VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton2;
+ VitNX.UI.ControlsV1.Controls.VitNX_Label darkLabel9;
+ VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton3;
System.Windows.Forms.Panel progressPanel;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label labelPartProgress;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_GroupBox darkGroupBox2;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_ComboBox darkComboBox2;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton4;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label labelAllProgress;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label DebugInfo;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_ListView darkListView2;
+ VitNX.UI.ControlsV1.Controls.VitNX_Label labelPartProgress;
+ VitNX.UI.ControlsV1.Controls.VitNX_GroupBox darkGroupBox2;
+ VitNX.UI.ControlsV1.Controls.VitNX_ComboBox darkComboBox2;
+ VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton4;
+ VitNX.UI.ControlsV1.Controls.VitNX_Label labelAllProgress;
+ VitNX.UI.ControlsV1.Controls.VitNX_Label DebugInfo;
+ VitNX.UI.ControlsV1.Controls.VitNX_ListView darkListView2;
System.Windows.Forms.PictureBox pictureBox8;
System.Windows.Forms.PictureBox pictureBox9;
System.Windows.Forms.ListBox modsList;
System.Windows.Forms.PictureBox pictureBox10;
System.Windows.Forms.PictureBox pictureBox11;
- VitNX.UI.ControlsV1.VitNX_ProgressBar PartProgressBar;
- VitNX.UI.ControlsV1.VitNX_ProgressBar AllProgressBar;
- VitNX.UI.ControlsV1.VitNX_ProgressBar originalGameRestoreProgressBar;
+ VitNX.UI.ControlsV2.VitNX2_ProgressBar PartProgressBar;
+ VitNX.UI.ControlsV2.VitNX2_ProgressBar AllProgressBar;
+ VitNX.UI.ControlsV2.VitNX2_ProgressBar originalGameRestoreProgressBar;
System.Windows.Forms.Label darkTitle1;
System.Windows.Forms.Label darkTitle2;
System.Windows.Forms.Label label1;
System.Windows.Forms.PictureBox pictureBox12;
System.Windows.Forms.PictureBox pictureBox13;
- System.Windows.Forms.PictureBox pictureBox14;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label HelloUser;
- private System.Windows.Forms.Button play;
- private System.Windows.Forms.Label label3;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton5;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label darkLabel2;
- private System.Windows.Forms.Panel ScreenShotViewer;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton6;
- private System.Windows.Forms.PictureBox ScreenShotInViewer;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton7;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton8;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton9;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button vitNX_Button1;
- private System.Windows.Forms.PictureBox pictureBox15;
- }
+ System.Windows.Forms.PictureBox pictureBox14;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label HelloUser;
+ private System.Windows.Forms.Button play;
+ private System.Windows.Forms.Label label3;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton5;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Label darkLabel2;
+ private System.Windows.Forms.Panel ScreenShotViewer;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton6;
+ private System.Windows.Forms.PictureBox ScreenShotInViewer;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton7;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton8;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton9;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button vitNX_Button1;
+ private System.Windows.Forms.PictureBox pictureBox15;
+ }
}
\ No newline at end of file
diff --git a/sources/GUI/MainForm.cs b/sources/GUI/MainForm.cs
index cbd3209..4f51f3e 100644
--- a/sources/GUI/MainForm.cs
+++ b/sources/GUI/MainForm.cs
@@ -1,24 +1,18 @@
using CG.Web.MegaApiClient;
-
using Microsoft.Win32;
-
using Newtonsoft.Json;
-
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
-using System.Text;
using System.Windows.Forms;
using System.Xml.Serialization;
-
-using VitNX.Functions.Common;
-using VitNX.Functions.Common.Information;
-using VitNX.Functions.Windows.Apps;
-using VitNX.Functions.Windows.Controllers;
-using VitNX.Functions.Windows.Win32;
-using VitNX.UI.ControlsV1.BasedOnDarkUI.Forms;
+using VitNX.Functions.AppsAndProcesses;
+using VitNX.Functions.Information;
+using VitNX.Functions.Win32;
+using VitNX.Functions.WinControllers;
+using VitNX.UI.ControlsV1.Forms;
namespace JetpackGUI
{
@@ -26,7 +20,7 @@ public partial class MainForm : Form
{
protected override void OnHandleCreated(EventArgs e)
{
- VitNX.Functions.Windows.WindowSAndControls.WindowS.SetWindowsTenAndHighStyleForWinFormTitleToDark(Handle);
+ VitNX.Functions.WindowAndControls.Window.SetWindowsTenAndHighStyleForWinFormTitleToDark(Handle);
}
private Props config = new Props();
@@ -50,7 +44,7 @@ protected override void OnHandleCreated(EventArgs e)
private void MainForm_Load(object sender, EventArgs e)
{
- ServicePointManager.SecurityProtocol = VitNX.Functions.Common.Web.Config.UseProtocols();
+ ServicePointManager.SecurityProtocol = VitNX.Functions.Web.Config.UseProtocols();
Import.SetProcessDpiAwareness(Enums.PROCESS_DPI_AWARENESS.PROCESS_DPI_UNAWARE);
if (!Directory.Exists($@"{Application.StartupPath}\files\patches"))
{
@@ -162,7 +156,7 @@ private void button1_Click(object sender, EventArgs e)
for (int i = 0; i < modsZip.Length; i++)
{
string modName = new FileInfo(modsZip[i]).Name.Replace(".zip", "");
- if (FileSystem.IsPeExe(modsZip[i]) == false)
+ if (VitNX.Functions.FileSystem.File.IsPeExe(modsZip[i]) == false)
{
try
{
@@ -243,7 +237,7 @@ private void button1_Click(object sender, EventArgs e)
private static string GetMD5(string file)
{
- try { return FileSystem.GetFileMD5(file); }
+ try { return VitNX.Functions.FileSystem.File.GetMD5(file); }
catch { return "0x50 0x45"; }
}
@@ -377,7 +371,7 @@ private void button3_Click(object sender, EventArgs e)
private void MsgInfo(string message)
{
- VitNX_MessageBox.ShowInfo(message, lc_text[9]);
+ VitNX_MessageBox.ShowInformation(message, lc_text[9]);
}
private void MsgWarning(string message)
diff --git a/sources/GUI/OtherForms/About.Designer.cs b/sources/GUI/OtherForms/About.Designer.cs
index 8a99c15..4a98f24 100644
--- a/sources/GUI/OtherForms/About.Designer.cs
+++ b/sources/GUI/OtherForms/About.Designer.cs
@@ -1,42 +1,42 @@
-
-namespace JetpackGUI
-{
- partial class About
+
+namespace JetpackGUI
+{
+ partial class About
{
- ///
- /// Required designer variable.
- ///
- System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
+ ///
+ /// Required designer variable.
+ ///
+ System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
}
- #region Windows Form Designer generated code
+ #region Windows Form Designer generated code
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- void InitializeComponent()
- {
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ void InitializeComponent()
+ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About));
this.label3 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
- this.darkButton1 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.darkTextBox1 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_TextBox();
- this.darkButton2 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.darkButton3 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.darkButton4 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
+ this.darkButton1 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.darkTextBox1 = new VitNX.UI.ControlsV1.Controls.VitNX_TextBox();
+ this.darkButton2 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.darkButton3 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.darkButton4 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
@@ -169,17 +169,17 @@ void InitializeComponent()
this.ResumeLayout(false);
this.PerformLayout();
- }
-
- #endregion
-
- private System.Windows.Forms.PictureBox pictureBox1;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label1;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton1;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_TextBox darkTextBox1;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton2;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton3;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button darkButton4;
- }
+ }
+
+ #endregion
+
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label1;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton1;
+ private VitNX.UI.ControlsV1.Controls.VitNX_TextBox darkTextBox1;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton2;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton3;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button darkButton4;
+ }
}
\ No newline at end of file
diff --git a/sources/GUI/OtherForms/About.cs b/sources/GUI/OtherForms/About.cs
index 33a0682..778933a 100644
--- a/sources/GUI/OtherForms/About.cs
+++ b/sources/GUI/OtherForms/About.cs
@@ -1,30 +1,30 @@
-using System;
-using System.IO;
-using System.Windows.Forms;
+using System;
+using System.IO;
+using System.Windows.Forms;
using System.Xml.Serialization;
+using VitNX.Functions.AppsAndProcesses;
+using VitNX.UI.ControlsV1.Forms;
-using VitNX.UI.ControlsV1.BasedOnDarkUI.Forms;
-using VitNX.Functions.Windows.Apps;
-namespace JetpackGUI
-{
- public partial class About : Form
+namespace JetpackGUI
+{
+ public partial class About : Form
{
protected override void OnHandleCreated(EventArgs e)
- {
- VitNX.Functions.Windows.WindowSAndControls.WindowS.SetWindowsTenAndHighStyleForWinFormTitleToDark(Handle);
+ {
+ VitNX.Functions.WindowAndControls.Window.SetWindowsTenAndHighStyleForWinFormTitleToDark(Handle);
}
-
+
public About()
{
InitializeComponent();
}
-
+
private void MsgWarning()
{
VitNX_MessageBox.ShowWarning(MSG[1], MSG[0]);
}
-
+
private void darkButton1_Click(object sender, EventArgs e)
{
if (!Processes.OpenLink(Urls.GitHubAppIssues))
@@ -33,7 +33,7 @@ private void darkButton1_Click(object sender, EventArgs e)
Clipboard.SetText(Urls.GitHubAppIssues);
}
}
-
+
private void darkButton1_Click_1(object sender, EventArgs e)
{
if (!Processes.OpenLink(Urls.GitHubAppAuthors))
@@ -42,7 +42,7 @@ private void darkButton1_Click_1(object sender, EventArgs e)
Clipboard.SetText(Urls.GitHubAppAuthors);
}
}
-
+
private void darkButton3_Click(object sender, EventArgs e)
{
if (!Processes.OpenLink(Urls.GitHub))
@@ -51,7 +51,7 @@ private void darkButton3_Click(object sender, EventArgs e)
Clipboard.SetText(Urls.GitHub);
}
}
-
+
private void darkButton4_Click(object sender, EventArgs e)
{
if (!Processes.OpenLink(Urls.GTAForums))
@@ -59,33 +59,33 @@ private void darkButton4_Click(object sender, EventArgs e)
MsgWarning();
Clipboard.SetText(Urls.GTAForums);
}
- }
-
- private string[] MSG = new string[2];
-
- private void MyLang_Load(object sender, EventArgs e)
- {
- MSG[0] = "Warning";
- this.Size = new System.Drawing.Size(485, 429);
- GUI language = new GUI();
- language.ReadXml();
- string langcode = language.Fields.LanguageCode;
- XmlSerializer lzol = new XmlSerializer(typeof(LanguagesString));
- using (StringReader reader = new StringReader(File.ReadAllText($@"{Application.StartupPath}\files\languages\{langcode}.xml")))
- {
- var LOCAL = (LanguagesString)lzol.Deserialize(reader);
- Text = LOCAL.AboutTitle;
- darkTextBox1.Text = "- " + LOCAL.Version + ": " + Convert.ToString(Application.ProductVersion);
- darkTextBox1.Text += "\r\n- " + LOCAL.Authors + ":\r\n~ Zalexanninev15 - " + LOCAL.Zalexanninev15 + "\r\n~ Vadim M. - " + LOCAL.VadimM;
- darkTextBox1.Text += "\r\n- " + LOCAL.License + ": MIT";
- darkTextBox1.Text += "\r\n- " + LOCAL.Localization + ": " + LOCAL.LocalizationBy;
- darkButton1.Text = LOCAL.AboutDonate;
- darkButton2.Text = LOCAL.AboutIssues;
- darkButton3.Text = LOCAL.AboutSite;
- darkButton4.Text = LOCAL.AboutTopic;
- MSG[0] = LOCAL.Warning;
- MSG[1] = LOCAL.BrowserNotFound;
- }
- }
- }
+ }
+
+ private string[] MSG = new string[2];
+
+ private void MyLang_Load(object sender, EventArgs e)
+ {
+ MSG[0] = "Warning";
+ this.Size = new System.Drawing.Size(485, 429);
+ GUI language = new GUI();
+ language.ReadXml();
+ string langcode = language.Fields.LanguageCode;
+ XmlSerializer lzol = new XmlSerializer(typeof(LanguagesString));
+ using (StringReader reader = new StringReader(File.ReadAllText($@"{Application.StartupPath}\files\languages\{langcode}.xml")))
+ {
+ var LOCAL = (LanguagesString)lzol.Deserialize(reader);
+ Text = LOCAL.AboutTitle;
+ darkTextBox1.Text = "- " + LOCAL.Version + ": " + Convert.ToString(Application.ProductVersion);
+ darkTextBox1.Text += "\r\n- " + LOCAL.Authors + ":\r\n~ Zalexanninev15 - " + LOCAL.Zalexanninev15 + "\r\n~ Vadim M. - " + LOCAL.VadimM;
+ darkTextBox1.Text += "\r\n- " + LOCAL.License + ": MIT";
+ darkTextBox1.Text += "\r\n- " + LOCAL.Localization + ": " + LOCAL.LocalizationBy;
+ darkButton1.Text = LOCAL.AboutDonate;
+ darkButton2.Text = LOCAL.AboutIssues;
+ darkButton3.Text = LOCAL.AboutSite;
+ darkButton4.Text = LOCAL.AboutTopic;
+ MSG[0] = LOCAL.Warning;
+ MSG[1] = LOCAL.BrowserNotFound;
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/sources/GUI/OtherForms/ChooseGame.Designer.cs b/sources/GUI/OtherForms/ChooseGame.Designer.cs
index 83fc859..6e0d8c3 100644
--- a/sources/GUI/OtherForms/ChooseGame.Designer.cs
+++ b/sources/GUI/OtherForms/ChooseGame.Designer.cs
@@ -1,40 +1,40 @@
-
-namespace JetpackGUI
-{
- partial class ChooseGame
+
+namespace JetpackGUI
+{
+ partial class ChooseGame
{
- ///
- /// Required designer variable.
- ///
- System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
+ ///
+ /// Required designer variable.
+ ///
+ System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
}
- #region Windows Form Designer generated code
+ #region Windows Form Designer generated code
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- void InitializeComponent()
- {
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ void InitializeComponent()
+ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ChooseGame));
this.label3 = new System.Windows.Forms.Label();
- this.vitNX_Button1 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.vitNX_Button2 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.vitNX_Button3 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
- this.vitNX_Button4 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
+ this.vitNX_Button1 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.vitNX_Button2 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.vitNX_Button3 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
+ this.vitNX_Button4 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
this.SuspendLayout();
//
// label3
@@ -123,13 +123,13 @@ void InitializeComponent()
this.Load += new System.EventHandler(this.MyLang_Load);
this.ResumeLayout(false);
- }
-
- #endregion
+ }
+
+ #endregion
private System.Windows.Forms.Label label3;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button vitNX_Button1;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button vitNX_Button2;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button vitNX_Button3;
- private VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button vitNX_Button4;
- }
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button vitNX_Button1;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button vitNX_Button2;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button vitNX_Button3;
+ private VitNX.UI.ControlsV1.Controls.VitNX_Button vitNX_Button4;
+ }
}
\ No newline at end of file
diff --git a/sources/GUI/OtherForms/FirstLaunch.Designer.cs b/sources/GUI/OtherForms/FirstLaunch.Designer.cs
index d1d81a2..c6aeee7 100644
--- a/sources/GUI/OtherForms/FirstLaunch.Designer.cs
+++ b/sources/GUI/OtherForms/FirstLaunch.Designer.cs
@@ -30,9 +30,9 @@ protected override void Dispose(bool disposing)
void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MyLang));
- this.darkLabel1 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label();
- this.AllLangs = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_ComboBox();
- this.button2 = new VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button();
+ this.darkLabel1 = new VitNX.UI.ControlsV1.Controls.VitNX_Label();
+ this.AllLangs = new VitNX.UI.ControlsV1.Controls.VitNX_ComboBox();
+ this.button2 = new VitNX.UI.ControlsV1.Controls.VitNX_Button();
this.SuspendLayout();
//
// darkLabel1
@@ -99,8 +99,8 @@ void InitializeComponent()
#endregion
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Label darkLabel1;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_ComboBox AllLangs;
- VitNX.UI.ControlsV1.BasedOnDarkUI.Controls.VitNX_Button button2;
+ VitNX.UI.ControlsV1.Controls.VitNX_Label darkLabel1;
+ VitNX.UI.ControlsV1.Controls.VitNX_ComboBox AllLangs;
+ VitNX.UI.ControlsV1.Controls.VitNX_Button button2;
}
}
\ No newline at end of file
diff --git a/sources/GUI/OtherForms/FirstLaunch.cs b/sources/GUI/OtherForms/FirstLaunch.cs
index 3162e9f..88b1293 100644
--- a/sources/GUI/OtherForms/FirstLaunch.cs
+++ b/sources/GUI/OtherForms/FirstLaunch.cs
@@ -1,80 +1,79 @@
-using System;
-using System.IO;
-using System.Windows.Forms;
+using System;
+using System.IO;
+using System.Windows.Forms;
using System.Xml.Serialization;
+using VitNX.UI.ControlsV1.Forms;
-using VitNX.UI.ControlsV1.BasedOnDarkUI.Forms;
-
-namespace JetpackGUI
-{
- public partial class MyLang : Form
+namespace JetpackGUI
+{
+ public partial class MyLang : Form
{
protected override void OnHandleCreated(EventArgs e)
- {
- VitNX.Functions.Windows.WindowSAndControls.WindowS.SetWindowsTenAndHighStyleForWinFormTitleToDark(Handle);
- }
-
- private GUI mygui = new GUI();
- private XmlSerializer lzol = new XmlSerializer(typeof(LanguagesString));
- private string[] langs = new string[10];
-
+ {
+ VitNX.Functions.WindowAndControls.Window.SetWindowsTenAndHighStyleForWinFormTitleToDark(Handle);
+ }
+
+ private GUI mygui = new GUI();
+ private XmlSerializer lzol = new XmlSerializer(typeof(LanguagesString));
+ private string[] langs = new string[10];
+
public MyLang()
{
InitializeComponent();
- }
-
- private void button2_Click(object sender, EventArgs e)
- {
- if (AllLangs.Text != "")
- {
- mygui.Fields.FirstLaunch = false;
- mygui.WriteXml();
- System.Threading.Tasks.Task.Delay(300);
- Application.Restart();
- }
- else { VitNX_MessageBox.ShowInfo("You need to select a language from the list!", "Information"); }
- }
-
- private void MyLang_Load(object sender, EventArgs e)
- {
- this.Size = new System.Drawing.Size(265, 152);
- AllLangs.Items.Clear();
- langs = Directory.GetFiles($@"{Application.StartupPath}\files\languages", "*.xml");
- for (int i = 0; i < langs.Length; i++)
- {
- if (langs[i] != "")
- {
- string lg = "English";
- using (StringReader reader = new StringReader(File.ReadAllText(langs[i])))
- {
- var LOCAL = (LanguagesString)lzol.Deserialize(reader);
- lg = LOCAL.Language;
- }
- AllLangs.Items.Add(lg);
- }
- }
- }
-
- private void AllLangs_SelectedIndexChanged(object sender, EventArgs e)
- {
- for (int i = 0; i < langs.Length; i++)
- {
- if (langs[i] != "")
- {
- using (StringReader reader = new StringReader(File.ReadAllText(langs[i])))
- {
- var LOCAL = (LanguagesString)lzol.Deserialize(reader);
- if (AllLangs.Text == LOCAL.Language)
- {
- mygui.Fields.LanguageCode = new FileInfo(langs[i]).Name.Replace(".xml", "");
- mygui.WriteXml();
- ActiveForm.Text = LOCAL.FirstTitle;
- darkLabel1.Text = LOCAL.SelectLang;
- button2.Text = LOCAL.ApplyAndLaunch;
- }
- }
- }
- }
- }
- }
+ }
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+ if (AllLangs.Text != "")
+ {
+ mygui.Fields.FirstLaunch = false;
+ mygui.WriteXml();
+ System.Threading.Tasks.Task.Delay(300);
+ Application.Restart();
+ }
+ else { VitNX_MessageBox.ShowInformation("You need to select a language from the list!", "Information"); }
+ }
+
+ private void MyLang_Load(object sender, EventArgs e)
+ {
+ this.Size = new System.Drawing.Size(265, 152);
+ AllLangs.Items.Clear();
+ langs = Directory.GetFiles($@"{Application.StartupPath}\files\languages", "*.xml");
+ for (int i = 0; i < langs.Length; i++)
+ {
+ if (langs[i] != "")
+ {
+ string lg = "English";
+ using (StringReader reader = new StringReader(File.ReadAllText(langs[i])))
+ {
+ var LOCAL = (LanguagesString)lzol.Deserialize(reader);
+ lg = LOCAL.Language;
+ }
+ AllLangs.Items.Add(lg);
+ }
+ }
+ }
+
+ private void AllLangs_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ for (int i = 0; i < langs.Length; i++)
+ {
+ if (langs[i] != "")
+ {
+ using (StringReader reader = new StringReader(File.ReadAllText(langs[i])))
+ {
+ var LOCAL = (LanguagesString)lzol.Deserialize(reader);
+ if (AllLangs.Text == LOCAL.Language)
+ {
+ mygui.Fields.LanguageCode = new FileInfo(langs[i]).Name.Replace(".xml", "");
+ mygui.WriteXml();
+ ActiveForm.Text = LOCAL.FirstTitle;
+ darkLabel1.Text = LOCAL.SelectLang;
+ button2.Text = LOCAL.ApplyAndLaunch;
+ }
+ }
+ }
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/sources/GUI/Program.cs b/sources/GUI/Program.cs
index b5f8f49..5e1a47b 100644
--- a/sources/GUI/Program.cs
+++ b/sources/GUI/Program.cs
@@ -1,56 +1,56 @@
-using System;
+using System;
using System.Windows.Forms;
-using VitNX.Functions.Common.Information;
-using VitNX.UI.ControlsV1.BasedOnDarkUI.Forms;
+using VitNX.Functions.Information;
+using VitNX.UI.ControlsV1.Forms;
-namespace JetpackGUI
-{
- internal static class Program
- {
- public static void Main(string[] args)
- {
- bool AvailableNewVersion = false;
- const bool DevVersion = true;
- try
- {
- Application.EnableVisualStyles();
+namespace JetpackGUI
+{
+ internal static class Program
+ {
+ public static void Main(string[] args)
+ {
+ bool AvailableNewVersion = false;
+ const bool DevVersion = true;
+ try
+ {
+ Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
- if (DevVersion == false)
- {
- try
- {
+ if (DevVersion == false)
+ {
+ try
+ {
if (Internet.IsHaveInternet("github.com") == Internet.INTERNET_STATUS.CONNECTED)
{
- string toolkit_version = VitNX.Functions.Common.Web.DataFromSites.DownloadString(Data.NewVersionDetector, Application.ProductVersion);
+ string toolkit_version = VitNX.Functions.Web.DataFromSites.DownloadString(Data.NewVersionDetector, Application.ProductVersion);
if (toolkit_version != Data.JetpackDowngraderVersion)
AvailableNewVersion = true;
- }
+ }
else
AvailableNewVersion = false;
- }
- catch { AvailableNewVersion = false; }
- }
- if (AvailableNewVersion == false)
- {
- GUI mygui = new GUI();
- mygui.ReadXml();
- if (mygui.Fields.FirstLaunch == false)
- Application.Run(new MainForm());
- else
- Application.Run(new MyLang());
- }
- else
- {
- VitNX_MessageBox.ShowInfo("An update is available!\nNow you will be redirected to the download page of the latest version", "Information");
- if (!VitNX.Functions.Windows.Apps.Processes.OpenLink(Urls.Release))
+ }
+ catch { AvailableNewVersion = false; }
+ }
+ if (AvailableNewVersion == false)
+ {
+ GUI mygui = new GUI();
+ mygui.ReadXml();
+ if (mygui.Fields.FirstLaunch == false)
+ Application.Run(new MainForm());
+ else
+ Application.Run(new MyLang());
+ }
+ else
+ {
+ VitNX_MessageBox.ShowInformation("An update is available!\nNow you will be redirected to the download page of the latest version", "Information");
+ if (!VitNX.Functions.AppsAndProcesses.Processes.OpenLink(Urls.Release))
{
VitNX_MessageBox.ShowWarning("Browser to open the link was not found! The link will be copied to the clipboard!", "Warning");
Clipboard.SetText(Urls.Release);
- }
- }
- }
- catch (Exception ex) { VitNX_MessageBox.ShowError(ex.ToString(), "Error"); }
- }
- }
+ }
+ }
+ }
+ catch (Exception ex) { VitNX_MessageBox.ShowError(ex.ToString(), "Error"); }
+ }
+ }
}
\ No newline at end of file
diff --git a/sources/GUI/packages.config b/sources/GUI/packages.config
index 620dbbc..9f18b04 100644
--- a/sources/GUI/packages.config
+++ b/sources/GUI/packages.config
@@ -1,5 +1,5 @@
-
-
+
+
\ No newline at end of file