Change Unreal Engine offsets to be modifiable

This commit is contained in:
2025-09-10 22:12:14 +02:00
parent 27bfc6a28c
commit e75ee6aa0a

View File

@@ -25801,8 +25801,9 @@ void UBlueprintPlatformLibrary::SetAllowedDeviceOrientation(EScreenOrientation N
class UWorld* UWorld::GetWorld()
{
if constexpr (Offsets::GWorld != 0)
return *reinterpret_cast<UWorld**>(InSDKUtils::GetImageBase() + Offsets::GWorld);
//if constexpr (Offsets::GWorld != 0)
if (Offsets::GWorld != 0)
return *reinterpret_cast<UWorld**>(InSDKUtils::GetImageBase() + Offsets::GWorld);
if (UEngine* Engine = UEngine::GetEngine())
{