mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 05:47:43 +01:00
This is fucking dog shit
This commit is contained in:
parent
52daf6ada0
commit
54bf6099bf
7 changed files with 281 additions and 268 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Pipes;
|
||||
using System.Text.RegularExpressions;
|
||||
|
|
@ -18,17 +19,18 @@ namespace Dalamud.Bootstrap
|
|||
m_options = options;
|
||||
}
|
||||
|
||||
public static void Test()
|
||||
public void Launch(string exePath, IDictionary<string, string> arguments)
|
||||
{
|
||||
//
|
||||
}
|
||||
var options = new GameProcessCreationOptions
|
||||
{
|
||||
ImagePath = exePath,
|
||||
Arguments = arguments,
|
||||
CreateSuspended = true
|
||||
};
|
||||
|
||||
public void Launch(string exePath, string? commandLine)
|
||||
{
|
||||
commandLine = commandLine ?? "";
|
||||
using var process = GameProcess.Create(options);
|
||||
|
||||
|
||||
//throw new NotImplementedException("TODO");
|
||||
// TODO: Inject(process);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -62,14 +64,9 @@ namespace Dalamud.Bootstrap
|
|||
using var process = GameProcess.Open(pid);
|
||||
|
||||
var exePath = process.GetImageFilePath();
|
||||
|
||||
var argument = process.GetGameArguments();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var encryptedArgument = EncryptArgument(argument.ToString());
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue