From 014315ff799b0893c0da111f77ab88974cb64b68 Mon Sep 17 00:00:00 2001 From: murdle Date: Fri, 2 May 2025 06:46:59 -0700 Subject: [PATCH] some organisation --- RobloxLegacy/Installer.cs | 4 +--- RobloxLegacy/Utilities/Logger.cs | 4 ++-- RobloxLegacy/Utilities/{BinaryPatcher.cs => Patcher.cs} | 2 +- RobloxLegacy/VersionManager.cs | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) rename RobloxLegacy/Utilities/{BinaryPatcher.cs => Patcher.cs} (98%) diff --git a/RobloxLegacy/Installer.cs b/RobloxLegacy/Installer.cs index e3bdc06..ef66a21 100644 --- a/RobloxLegacy/Installer.cs +++ b/RobloxLegacy/Installer.cs @@ -21,13 +21,11 @@ public class Installer ); // create a shortcut in the start menu - var startMenuPath = Path.Combine( - Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), "Programs"); Shortcut.Create( "Roblox Legacy", filePath, "Updater and patcher for roblox on legacy operating systems", - startMenuPath + Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), "Programs") ); } diff --git a/RobloxLegacy/Utilities/Logger.cs b/RobloxLegacy/Utilities/Logger.cs index 08503f0..d37211f 100644 --- a/RobloxLegacy/Utilities/Logger.cs +++ b/RobloxLegacy/Utilities/Logger.cs @@ -4,11 +4,11 @@ public static class Logger { public static void Info(string msg) { - Console.Write($"[+] {msg}\n", ConsoleColor.Gray); + Console.Write($"[+] {msg}\n"); } public static void Error(string msg) { - Console.Write($"[!] {msg}\n", ConsoleColor.Red); + Console.Write($"[!] {msg}\n"); } } \ No newline at end of file diff --git a/RobloxLegacy/Utilities/BinaryPatcher.cs b/RobloxLegacy/Utilities/Patcher.cs similarity index 98% rename from RobloxLegacy/Utilities/BinaryPatcher.cs rename to RobloxLegacy/Utilities/Patcher.cs index 1c36eb3..baa07fb 100644 --- a/RobloxLegacy/Utilities/BinaryPatcher.cs +++ b/RobloxLegacy/Utilities/Patcher.cs @@ -2,7 +2,7 @@ namespace RobloxLegacy.Utilities; -public static class BinaryPatcher +public static class Patcher { // this is insanely autistic // if you have a better way of doing it let me know diff --git a/RobloxLegacy/VersionManager.cs b/RobloxLegacy/VersionManager.cs index cd5ed84..a969386 100644 --- a/RobloxLegacy/VersionManager.cs +++ b/RobloxLegacy/VersionManager.cs @@ -61,7 +61,7 @@ public class VersionManager : IDisposable var exePath = Path.Combine(GetVersionPath(_currentVersion), _appData.ExecutableName); // rename imports first - BinaryPatcher.RenameImports(exePath, ["KERNEL32.dll", "MFPlat.DLL"], DllName); + Patcher.RenameImports(exePath, ["KERNEL32.dll", "MFPlat.DLL"], DllName); // now we can write the dll to the folder var dllContents = new Resource($"RobloxLegacy.{DllName}").GetBytes();