Browse Source

Fixed IPA.exe to properly detect games and not itself

pull/32/head
Anairkoen Schno 5 years ago
parent
commit
5eea020036
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IPA/Program.cs

+ 1
- 1
IPA/Program.cs View File

@ -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);


Loading…
Cancel
Save