Windows: Setup tu_override_uncached_as_cache_coherent inside of dlls

To not have this environment variable accidently be enabled on arm64
native Wine games, we need to set it from inside of FEX.

Requires the FEX dlls to set them directly rather than launch scripts.
This commit is contained in:
Ryan Houdek committed 2026-05-08 13:39:51 -07:00
1 parent e517f3259c
commit b7bfbc3fcd
6 files changed
+48

No files matched your search

+3
View File
@@ -28,6 +28,7 @@ $end_info$
#include <FEXCore/Utils/SignalScopeGuards.h>
#include "Windows/Common/Allocator.h"
#include "Windows/Common/EnvironmentVariablesHandling.h"
#include "Common/CallRetStack.h"
#include "Common/JITGuardPage.h"
#include "Common/Config.h"
@@ -595,6 +596,8 @@ NTSTATUS ProcessInit() {
const bool IsWine = !!GetProcAddress(NtDll, "wine_get_version");
OvercommitTracker.emplace(IsWine);
FEX::Windows::SetupEnvironmentVariableValues(NtDll);
FEX::Windows::Allocator::SetupHooks(NtDll);
{