mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-10 10:08:39 +00:00
Merge UnionRemotePatcher into UnionPatcher
Squashed commit of the following: commit db54f752b1a7d876c8e8ac23f64fac0e133c6c42 Author: jvyden <jvyden@jvyden.xyz> Date: Tue Jun 14 21:50:24 2022 -0400 Fix warnings in Program.cs, remove version commit abab75e00a9fa5c762669365a130025b7fa28522 Author: jvyden <jvyden@jvyden.xyz> Date: Tue Jun 14 21:45:08 2022 -0400 Enforce file-scoped namespaces commit d004b8dd77546b0dedc572bc3e7849677a707697 Author: jvyden <jvyden@jvyden.xyz> Date: Tue Jun 14 21:43:53 2022 -0400 Cleanup remote patching commit d611df7e2e5ad86466acb3fe95b835e5df3efa38 Author: jvyden <jvyden@jvyden.xyz> Date: Tue Jun 14 21:25:57 2022 -0400 Theoretically working state commit 18b362e268d800bac3c6fa5c3ae0c0b896627648 Author: jvyden <jvyden@jvyden.xyz> Date: Tue Jun 14 21:10:58 2022 -0400 Import code from UnionRemotePatcher Co-authored-by: Logan Lowe <loganr.lowe@gmail.com>
This commit is contained in:
parent
ff38cd2bd6
commit
447ca7b4a5
11 changed files with 2287 additions and 65 deletions
|
@ -1,17 +1,16 @@
|
|||
using System.Diagnostics;
|
||||
using LBPUnion.UnionPatcher;
|
||||
|
||||
namespace LBPUnion.UnionPatcher.Cli;
|
||||
namespace UnionPatcher.Cli;
|
||||
|
||||
public static class Program {
|
||||
public const string Version = "1.0";
|
||||
|
||||
private static string fileName;
|
||||
|
||||
|
||||
private static string? fileName;
|
||||
public static string FileName {
|
||||
get {
|
||||
if(fileName != null) return fileName;
|
||||
|
||||
return fileName = Path.GetFileName(Process.GetCurrentProcess().MainModule?.FileName);
|
||||
return fileName = (Path.GetFileName(Process.GetCurrentProcess().MainModule?.FileName) ?? "");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,7 +45,7 @@ public static class Program {
|
|||
}
|
||||
|
||||
public static void PrintHelp() {
|
||||
Console.WriteLine($"UnionPatcher {Version}");
|
||||
Console.WriteLine("UnionPatcher");
|
||||
Console.WriteLine($" Usage: {FileName} <Input EBOOT.elf> <Server URL> <Output filename>");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue