mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: append RunAsInvoker to __COMPAT_LAYER if not present
This commit is contained in:
parent
40ca5e7a4a
commit
f40b52968b
1 changed files with 4 additions and 2 deletions
|
|
@ -74,11 +74,13 @@ namespace Dalamud.Injector
|
|||
};
|
||||
|
||||
var compatLayerPrev = Environment.GetEnvironmentVariable("__COMPAT_LAYER");
|
||||
if (compatLayerPrev != null && !compatLayerPrev.Contains("RunAsInvoker"))
|
||||
Log.Verbose("Has preset __COMPAT_LAYER={CompatLayer}", compatLayerPrev);
|
||||
|
||||
if (!string.IsNullOrEmpty(compatLayerPrev) && !compatLayerPrev.Contains("RunAsInvoker"))
|
||||
{
|
||||
Environment.SetEnvironmentVariable("__COMPAT_LAYER", $"RunAsInvoker {compatLayerPrev}");
|
||||
}
|
||||
else
|
||||
else if (string.IsNullOrEmpty(compatLayerPrev))
|
||||
{
|
||||
Environment.SetEnvironmentVariable("__COMPAT_LAYER", "RunAsInvoker");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue