Make CLI actually use args

This commit is contained in:
jvyden 2021-10-18 10:12:19 -04:00
commit 153c1f206c
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -17,12 +17,12 @@ namespace UnionPatcher {
}
public static void Main(string[] args) {
Patcher.PatchFile("EBOOT.elf", "https://lighthouse.lbpunion.com:10061/LITTLEBIGPLANETPS3_XML", "EBOOT.new.elf");
if(args.Length < 3) {
PrintHelp();
return;
}
Patcher.PatchFile(args[0], args[1], args[2]);
}
public static void PrintHelp() {