From 5f29ab87ea25b03f3300ca4d5ed0e009488ed7f4 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Mon, 22 Jul 2019 03:17:13 -0500 Subject: [PATCH] Fixed IPA.exe to properly detect games and not itself --- IPA/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPA/Program.cs b/IPA/Program.cs index e67c861d..f12b9314 100644 --- a/IPA/Program.cs +++ b/IPA/Program.cs @@ -91,7 +91,7 @@ namespace IPA var argExeName = Arguments.CmdLine.PositionalArgs.FirstOrDefault(s => s.EndsWith(".exe")); if (argExeName == null) context = PatchContext.Create(new DirectoryInfo(Directory.GetCurrentDirectory()).GetFiles() - .First(o => o.Extension == ".exe" && o.FullName != Assembly.GetCallingAssembly().Location) + .First(o => o.Extension == ".exe" && o.FullName != Assembly.GetEntryAssembly().Location) .FullName); else context = PatchContext.Create(argExeName);