Skip to content

Commit

Permalink
Fix pre-5.5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Nov 15, 2024
1 parent 4953514 commit cc7c9be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/UEST/Private/ScopedGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ FScopedGameInstance::~FScopedGameInstance()
}
}

#if ENGINE_MAJOR_VERSION > 5 || (ENGINE_MAJOR_VERSION == 5 && ENGINE_MAJOR_VERSION >= 5)
#if ENGINE_MAJOR_VERSION > 5 || (ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 5)
struct FGPlayInEditorIDGuard final : UE::Core::Private::FPlayInEditorLoadingScope
{
explicit FGPlayInEditorIDGuard(const int32 PlayInEditorID)
: FPlayInEditorLoadingScope(PlayInEditorID)
{}
};
#else
struct FGPlayInEditorIDGuard final : TGuardValue<int32>
struct FGPlayInEditorIDGuard final : TGuardValue<FPlayInEditorID, int32>
{
explicit FGPlayInEditorIDGuard(const int32 PlayInEditorID)
: TGuardValue(GPlayInEditorID, PlayInEditorID)
Expand Down
2 changes: 1 addition & 1 deletion Source/UEST/Private/UEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ uint32 FUESTTestBase::GetRequiredDeviceNum() const
return 1;
}

#if ENGINE_MAJOR_VERSION > 5 || (ENGINE_MAJOR_VERSION == 5 && ENGINE_MAJOR_VERSION >= 5)
#if ENGINE_MAJOR_VERSION > 5 || (ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 5)
EAutomationTestFlags FUESTTestBase::GetTestFlags() const
{
return EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::ProductFilter;
Expand Down
2 changes: 1 addition & 1 deletion Source/UEST/Public/UEST.h
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class UEST_API FUESTTestBase : public FAutomationTestBase

virtual uint32 GetRequiredDeviceNum() const override;

#if ENGINE_MAJOR_VERSION > 5 || (ENGINE_MAJOR_VERSION == 5 && ENGINE_MAJOR_VERSION >= 5)
#if ENGINE_MAJOR_VERSION > 5 || (ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 5)
virtual EAutomationTestFlags GetTestFlags() const override;
#else
virtual uint32 GetTestFlags() const override;
Expand Down

0 comments on commit cc7c9be

Please sign in to comment.