mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Remove legacy corrupted state exceptions entirely
This commit is contained in:
parent
9c80b72e5e
commit
fb61d72fae
8 changed files with 1 additions and 20 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue