mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: Injector entrypoint not setting workingdirectory, should be fixed in XL
This commit is contained in:
parent
552be3c9a9
commit
080a71ba61
2 changed files with 5 additions and 2 deletions
|
|
@ -61,6 +61,9 @@ namespace Dalamud.Injector
|
|||
var process = GetProcess(args.ElementAtOrDefault(1));
|
||||
var startInfo = GetStartInfo(args.ElementAtOrDefault(2), process);
|
||||
|
||||
// TODO: XL does not set this!!! we need to keep this line here for now, otherwise we crash in the Dalamud entrypoint
|
||||
startInfo.WorkingDirectory = Directory.GetCurrentDirectory();
|
||||
|
||||
// This seems to help with the STATUS_INTERNAL_ERROR condition
|
||||
Thread.Sleep(1000);
|
||||
|
||||
|
|
@ -243,7 +246,7 @@ namespace Dalamud.Injector
|
|||
|
||||
startInfo = new DalamudStartInfo
|
||||
{
|
||||
WorkingDirectory = Directory.GetCurrentDirectory(),
|
||||
WorkingDirectory = null,
|
||||
ConfigurationPath = Path.Combine(xivlauncherDir, "dalamudConfig.json"),
|
||||
PluginDirectory = Path.Combine(xivlauncherDir, "installedPlugins"),
|
||||
DefaultPluginDirectory = Path.Combine(xivlauncherDir, "devPlugins"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue