mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Add console argument/env var to disable legacy corrupted state exceptions policy
This commit is contained in:
parent
cf1d8a81c6
commit
b21a0c9298
8 changed files with 35 additions and 15 deletions
|
|
@ -30,6 +30,7 @@ std::optional<CoreCLR> g_clr;
|
|||
HRESULT InitializeClrAndGetEntryPoint(
|
||||
void* calling_module,
|
||||
bool enable_etw,
|
||||
bool enable_legacy_corrupted_state_exception_policy,
|
||||
std::wstring runtimeconfig_path,
|
||||
std::wstring module_path,
|
||||
std::wstring entrypoint_assembly_name,
|
||||
|
|
@ -41,8 +42,13 @@ HRESULT InitializeClrAndGetEntryPoint(
|
|||
|
||||
int result;
|
||||
SetEnvironmentVariable(L"DOTNET_MULTILEVEL_LOOKUP", L"0");
|
||||
SetEnvironmentVariable(L"COMPlus_legacyCorruptedStateExceptionsPolicy", L"1");
|
||||
SetEnvironmentVariable(L"DOTNET_legacyCorruptedStateExceptionsPolicy", L"1");
|
||||
|
||||
if (enable_legacy_corrupted_state_exception_policy)
|
||||
{
|
||||
SetEnvironmentVariable(L"COMPlus_legacyCorruptedStateExceptionsPolicy", L"1");
|
||||
SetEnvironmentVariable(L"DOTNET_legacyCorruptedStateExceptionsPolicy", L"1");
|
||||
}
|
||||
|
||||
SetEnvironmentVariable(L"COMPLUS_ForceENC", L"1");
|
||||
SetEnvironmentVariable(L"DOTNET_ForceENC", L"1");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue