Remove legacy corrupted state exceptions entirely

This commit is contained in:
goaaats 2025-03-28 00:51:59 +01:00
parent 9c80b72e5e
commit fb61d72fae
8 changed files with 1 additions and 20 deletions

View file

@ -46,7 +46,7 @@ static wchar_t* GetRuntimePath()
result = GetEnvironmentVariableW(L"DALAMUD_RUNTIME", &buffer[0], result);
return _wcsdup(buffer.c_str());
}
// Detect Windows first
result = SHGetKnownFolderPath(FOLDERID_RoamingAppData, KF_FLAG_DEFAULT, nullptr, &_appdata);
@ -89,7 +89,6 @@ static wchar_t* GetRuntimePath()
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,
@ -102,12 +101,6 @@ HRESULT InitializeClrAndGetEntryPoint(
int result;
SetEnvironmentVariable(L"DOTNET_MULTILEVEL_LOOKUP", L"0");
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");

View file

@ -4,7 +4,6 @@ void ConsoleTeardown();
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,