some organisation
This commit is contained in:
		
							parent
							
								
									ff1494ec03
								
							
						
					
					
						commit
						014315ff79
					
				@ -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")
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -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");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -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
 | 
			
		||||
@ -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();
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user