Browse Source

- Fixed IPA so that running it automatically targetted the `Beat Saber.exe`

refactor 3.6
artman41 6 years ago
parent
commit
7997feedb4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA/Program.cs

+ 2
- 2
IPA/Program.cs View File

@ -23,12 +23,12 @@ namespace IPA
static void Main(string[] args) { static void Main(string[] args) {
PatchContext context; PatchContext context;
Console.WriteLine($"{args[0]}");
if(args.Length < 1 || !args[0].EndsWith(".exe")) if(args.Length < 1 || !args[0].EndsWith(".exe"))
{ {
//Fail("Drag an (executable) file on the exe!"); //Fail("Drag an (executable) file on the exe!");
context = PatchContext.Create(new [] {"./Beat Saber.exe"});
context = PatchContext.Create(new [] {new DirectoryInfo(Directory.GetCurrentDirectory()).GetFiles().First(o => o.FullName.EndsWith(".exe"))
.FullName});
} }
else { else {
context = PatchContext.Create(args); context = PatchContext.Create(args);


Loading…
Cancel
Save