mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-15 12:27:43 +01:00
Add GetImageFilePath
This commit is contained in:
parent
6f6792f27e
commit
2e4796f8bf
6 changed files with 39 additions and 5 deletions
|
|
@ -21,7 +21,8 @@ namespace Dalamud.Bootstrap
|
|||
{
|
||||
commandLine = commandLine ?? "";
|
||||
|
||||
throw new NotImplementedException("TODO");
|
||||
|
||||
//throw new NotImplementedException("TODO");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -54,6 +55,8 @@ namespace Dalamud.Bootstrap
|
|||
// Acquire the process handle and read the command line
|
||||
using var process = Process.Open(pid);
|
||||
|
||||
var exePath = process.GetImageFilePath();
|
||||
|
||||
var argument = ReadArgumentFromProcess(process);
|
||||
|
||||
var newTick = (uint)Environment.TickCount;
|
||||
|
|
@ -66,7 +69,6 @@ namespace Dalamud.Bootstrap
|
|||
|
||||
var encryptedArgument = new EncryptedArgument(newArgument, newKey);
|
||||
|
||||
|
||||
// TODO: launch new exe with the argument from encryptedArgument.ToString()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue