remove remnants of long removed unreal 5.2 from third-party modules *.Build.cs files

This commit is contained in:
Mamadou Babaei
2025-11-18 03:23:03 +01:00
parent f6094122de
commit 90805084ec
6 changed files with 14 additions and 31 deletions
+14
View File
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Fix a typo in the function name `SGDeviceList::SenseCommRunning()`. This fix breaks ABI and API compatibility with previous versions of the plugin and affects both C++ and Blueprint code.
### Changed
- `SGDeviceList::SenseCommRunning()` has been renamed to `SGDeviceList::SenseComRunning()` due to a typo. This change breaks ABI and API compatibility with previous versions of the plugin and affects both C++ and Blueprint code.
### Removed
- Cleaned up remnants of the long-removed Unreal Engine `5.2` from third-party module `*.Build.cs` files.
## [2.6.3] - 2025-06-27 ## [2.6.3] - 2025-06-27
This patch release contains no changes to the plugin code. It includes only documentation updates and improvements. This patch release contains no changes to the plugin code. It includes only documentation updates and improvements.
@@ -1726,15 +1726,9 @@ void FSGXRTracker::UpdateDeviceLocations(
} }
} }
#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3
bool FSGXRTracker::GetControllerOrientationAndPosition(const int32 ControllerIndex, const FName MotionSource, bool FSGXRTracker::GetControllerOrientationAndPosition(const int32 ControllerIndex, const FName MotionSource,
FRotator& OutOrientation, FVector& OutPosition, FRotator& OutOrientation, FVector& OutPosition,
const float WorldToMetersScale) const const float WorldToMetersScale) const
#else /* ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3 */
bool FSGXRTracker::GetControllerOrientationAndPosition(const int32 ControllerIndex, const EControllerHand DeviceHand,
FRotator& OutOrientation, FVector& OutPosition,
const float WorldToMetersScale) const
#endif /* ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3 */
{ {
if (!IsHandTrackingStateValid()) if (!IsHandTrackingStateValid())
{ {
@@ -1769,12 +1763,7 @@ bool FSGXRTracker::GetControllerOrientationAndPosition(const int32 ControllerInd
return bGotTransform; return bGotTransform;
} }
#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3
ETrackingStatus FSGXRTracker::GetControllerTrackingStatus(const int32 ControllerIndex, const FName MotionSource) const ETrackingStatus FSGXRTracker::GetControllerTrackingStatus(const int32 ControllerIndex, const FName MotionSource) const
#else /* ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3 */
ETrackingStatus FSGXRTracker::GetControllerTrackingStatus(const int32 ControllerIndex,
const EControllerHand DeviceHand) const
#endif /* ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3 */
{ {
if (!IsHandTrackingStateValid()) if (!IsHandTrackingStateValid())
{ {
@@ -136,19 +136,11 @@ public:
public: public:
// The IMotionController interface. // The IMotionController interface.
#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3
virtual bool GetControllerOrientationAndPosition(const int32 ControllerIndex, const FName MotionSource, virtual bool GetControllerOrientationAndPosition(const int32 ControllerIndex, const FName MotionSource,
FRotator& OutOrientation, FVector& OutPosition, FRotator& OutOrientation, FVector& OutPosition,
float WorldToMetersScale) const override; float WorldToMetersScale) const override;
virtual ETrackingStatus GetControllerTrackingStatus(const int32 ControllerIndex, virtual ETrackingStatus GetControllerTrackingStatus(const int32 ControllerIndex,
const FName MotionSource) const override; const FName MotionSource) const override;
#else /* ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3 */
virtual bool GetControllerOrientationAndPosition(const int32 ControllerIndex, const EControllerHand DeviceHand,
FRotator& OutOrientation, FVector& OutPosition,
float WorldToMetersScale) const override;
virtual ETrackingStatus GetControllerTrackingStatus(const int32 ControllerIndex,
const EControllerHand DeviceHand) const override;
#endif /* ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3 */
virtual FName GetMotionControllerDeviceTypeName() const override; virtual FName GetMotionControllerDeviceTypeName() const override;
virtual void EnumerateSources(TArray<FMotionControllerSource>& SourcesOut) const override; virtual void EnumerateSources(TArray<FMotionControllerSource>& SourcesOut) const override;
@@ -79,8 +79,6 @@ public class SGConnectThirdPartyLibs : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23"));
#elif UE_5_3_OR_LATER #elif UE_5_3_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22"));
#elif UE_5_2_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v21"));
#else #else
Debug.Assert(false, "Unsupported engine version or compiler!"); Debug.Assert(false, "Unsupported engine version or compiler!");
#endif #endif
@@ -98,8 +96,6 @@ public class SGConnectThirdPartyLibs : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23"));
#elif UE_5_3_OR_LATER #elif UE_5_3_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22"));
#elif UE_5_2_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v21"));
#else #else
Debug.Assert(false, "Unsupported engine version or compiler!"); Debug.Assert(false, "Unsupported engine version or compiler!");
#endif #endif
@@ -79,8 +79,6 @@ public class SGCoreThirdPartyLibs : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23"));
#elif UE_5_3_OR_LATER #elif UE_5_3_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22"));
#elif UE_5_2_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v21"));
#else #else
Debug.Assert(false, "Unsupported engine version or compiler!"); Debug.Assert(false, "Unsupported engine version or compiler!");
#endif #endif
@@ -98,8 +96,6 @@ public class SGCoreThirdPartyLibs : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23"));
#elif UE_5_3_OR_LATER #elif UE_5_3_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22"));
#elif UE_5_2_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v21"));
#else #else
Debug.Assert(false, "Unsupported engine version or compiler!"); Debug.Assert(false, "Unsupported engine version or compiler!");
#endif #endif
@@ -79,8 +79,6 @@ public class SGSerialThirdPartyLibs : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23"));
#elif UE_5_3_OR_LATER #elif UE_5_3_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22"));
#elif UE_5_2_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v21"));
#else #else
Debug.Assert(false, "Unsupported engine version or compiler!"); Debug.Assert(false, "Unsupported engine version or compiler!");
#endif #endif
@@ -98,8 +96,6 @@ public class SGSerialThirdPartyLibs : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v23"));
#elif UE_5_3_OR_LATER #elif UE_5_3_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v22"));
#elif UE_5_2_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v21"));
#else #else
Debug.Assert(false, "Unsupported engine version or compiler!"); Debug.Assert(false, "Unsupported engine version or compiler!");
#endif #endif