From e75ee6aa0a286f6c5bce5faaaff5645e61c8d8f1 Mon Sep 17 00:00:00 2001 From: Emmanuel AYME Date: Wed, 10 Sep 2025 22:12:14 +0200 Subject: [PATCH] Change Unreal Engine offsets to be modifiable --- Cronos The New Dawn/SDK/Engine_functions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cronos The New Dawn/SDK/Engine_functions.cpp b/Cronos The New Dawn/SDK/Engine_functions.cpp index a32d128..c743e58 100644 --- a/Cronos The New Dawn/SDK/Engine_functions.cpp +++ b/Cronos The New Dawn/SDK/Engine_functions.cpp @@ -25801,8 +25801,9 @@ void UBlueprintPlatformLibrary::SetAllowedDeviceOrientation(EScreenOrientation N class UWorld* UWorld::GetWorld() { - if constexpr (Offsets::GWorld != 0) - return *reinterpret_cast(InSDKUtils::GetImageBase() + Offsets::GWorld); + //if constexpr (Offsets::GWorld != 0) + if (Offsets::GWorld != 0) + return *reinterpret_cast(InSDKUtils::GetImageBase() + Offsets::GWorld); if (UEngine* Engine = UEngine::GetEngine()) {