mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-20 15:41:01 +00:00
use plugins dir for working directory so we can get native dlls correctly
This commit is contained in:
parent
226943cb47
commit
edaf7ff84f
@ -30,16 +30,20 @@ namespace EpicRerouter.ModSide
|
||||
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!,
|
||||
"EpicRerouter.exe"
|
||||
);
|
||||
Log($"process path = {processPath}");
|
||||
var args = new[]
|
||||
{
|
||||
Application.productName,
|
||||
Application.version,
|
||||
Path.GetDirectoryName(typeof(EpicPlatformManager).Assembly.Location)
|
||||
};
|
||||
Log($"args = {args.Join()}");
|
||||
var workingDirectory = Path.GetFullPath(Path.Combine(args[2], "..", "Plugins", "x86_64"));
|
||||
Log($"working dir = {workingDirectory}");
|
||||
var process = Process.Start(new ProcessStartInfo
|
||||
{
|
||||
FileName = processPath,
|
||||
WorkingDirectory = Path.GetDirectoryName(processPath)!,
|
||||
WorkingDirectory = workingDirectory,
|
||||
Arguments = args.Join(x => $"\"{x}\"", " "),
|
||||
UseShellExecute = false
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user