Browse Source

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

pull/46/head
artman41 6 years ago
parent
commit
8d7599f921
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) {
PatchContext context;
Console.WriteLine($"{args[0]}");
if(args.Length < 1 || !args[0].EndsWith(".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 {
context = PatchContext.Create(args);


Loading…
Cancel
Save