Compare commits

..

No commits in common. "f36e0a126164a1e80c6f8509a0868292c51b988f" and "2459da2b254b13c8397f69ba2bfad2065d430e99" have entirely different histories.

4 changed files with 7 additions and 5 deletions

View File

@ -21,11 +21,13 @@ 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",
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), "Programs")
startMenuPath
);
}

View File

@ -2,7 +2,7 @@
namespace RobloxLegacy.Utilities;
public static class Patcher
public static class BinaryPatcher
{
// this is insanely autistic
// if you have a better way of doing it let me know

View File

@ -4,11 +4,11 @@ public static class Logger
{
public static void Info(string msg)
{
Console.Write($"[+] {msg}\n");
Console.Write($"[+] {msg}\n", ConsoleColor.Gray);
}
public static void Error(string msg)
{
Console.Write($"[!] {msg}\n");
Console.Write($"[!] {msg}\n", ConsoleColor.Red);
}
}

View File

@ -61,7 +61,7 @@ public class VersionManager : IDisposable
var exePath = Path.Combine(GetVersionPath(_currentVersion), _appData.ExecutableName);
// rename imports first
Patcher.RenameImports(exePath, ["KERNEL32.dll", "MFPlat.DLL"], DllName);
BinaryPatcher.RenameImports(exePath, ["KERNEL32.dll", "MFPlat.DLL"], DllName);
// now we can write the dll to the folder
var dllContents = new Resource($"RobloxLegacy.{DllName}").GetBytes();