This commit is contained in:
Mino 2020-03-11 22:28:06 +09:00
parent 350d2961c1
commit a01bc259a8
7 changed files with 55 additions and 17 deletions

View file

@ -26,13 +26,21 @@ namespace Dalamud.Injector
RootDirectory = rootDirectory,
});
// ..
boot.Relaunch(options.Pid);
}
private static void Launch(LaunchOptions options)
{
var binDirectory = options.BinaryDirectory ?? GetDefaultBinaryDirectory();
var rootDirectory = options.RootDirectory ?? GetDefaultRootDirectory();
var boot = new Bootstrapper(new BootstrapperOptions
{
BinaryDirectory = binDirectory,
RootDirectory = rootDirectory,
});
boot.Launch(options.ExecutablePath, options.CommandLine);
}
private static string GetDefaultBinaryDirectory()