some organisation

This commit is contained in:
murdle 2025-05-02 06:46:59 -07:00
parent ff1494ec03
commit 014315ff79
4 changed files with 5 additions and 7 deletions

View File

@ -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")
);
}

View File

@ -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");
}
}

View File

@ -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

View File

@ -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();