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
 | 
					        // create a shortcut in the start menu
 | 
				
			||||||
        var startMenuPath = Path.Combine(
 | 
					 | 
				
			||||||
            Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), "Programs");
 | 
					 | 
				
			||||||
        Shortcut.Create(
 | 
					        Shortcut.Create(
 | 
				
			||||||
            "Roblox Legacy",
 | 
					            "Roblox Legacy",
 | 
				
			||||||
            filePath,
 | 
					            filePath,
 | 
				
			||||||
            "Updater and patcher for roblox on legacy operating systems",
 | 
					            "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)
 | 
					    public static void Info(string msg)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Console.Write($"[+] {msg}\n", ConsoleColor.Gray);
 | 
					        Console.Write($"[+] {msg}\n");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    public static void Error(string msg)
 | 
					    public static void Error(string msg)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Console.Write($"[!] {msg}\n", ConsoleColor.Red);
 | 
					        Console.Write($"[!] {msg}\n");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -2,7 +2,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace RobloxLegacy.Utilities;
 | 
					namespace RobloxLegacy.Utilities;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public static class BinaryPatcher
 | 
					public static class Patcher
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    // this is insanely autistic
 | 
					    // this is insanely autistic
 | 
				
			||||||
    // if you have a better way of doing it let me know
 | 
					    // 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);
 | 
					        var exePath = Path.Combine(GetVersionPath(_currentVersion), _appData.ExecutableName);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        // rename imports first
 | 
					        // 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
 | 
					        // now we can write the dll to the folder
 | 
				
			||||||
        var dllContents = new Resource($"RobloxLegacy.{DllName}").GetBytes();
 | 
					        var dllContents = new Resource($"RobloxLegacy.{DllName}").GetBytes();
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user