From 7997feedb46554cc64bf7d836342b4f6052c4f23 Mon Sep 17 00:00:00 2001 From: artman41 Date: Tue, 15 May 2018 15:33:44 +0100 Subject: [PATCH] - Fixed IPA so that running it automatically targetted the `Beat Saber.exe` --- IPA/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPA/Program.cs b/IPA/Program.cs index 31be7dfc..f860991d 100644 --- a/IPA/Program.cs +++ b/IPA/Program.cs @@ -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);