diff --git a/Source/Engine/Audio/Audio.Build.cs b/Source/Engine/Audio/Audio.Build.cs index 3a40e73b0..c8ecda06d 100644 --- a/Source/Engine/Audio/Audio.Build.cs +++ b/Source/Engine/Audio/Audio.Build.cs @@ -47,6 +47,8 @@ public class Audio : EngineModule useOpenAL = true; break; case TargetPlatform.Switch: + options.SourcePaths.Add(Path.Combine(Globals.EngineRoot, "Source", "Platforms", "Switch", "Engine", "Audio")); + //options.CompileEnv.PreprocessorDefinitions.Add("AUDIO_API_SWITCH"); // TODO: impl audio on switch useNone = true; break; default: throw new InvalidPlatformException(options.Platform.Target); diff --git a/Source/Engine/Platform/Base/PlatformBase.cpp b/Source/Engine/Platform/Base/PlatformBase.cpp index 74d0ee85f..e33ae1499 100644 --- a/Source/Engine/Platform/Base/PlatformBase.cpp +++ b/Source/Engine/Platform/Base/PlatformBase.cpp @@ -420,6 +420,11 @@ ScreenOrientationType PlatformBase::GetScreenOrientationType() return ScreenOrientationType::Unknown; } +bool PlatformBase::GetIsPaused() +{ + return false; +} + void PlatformBase::CreateGuid(Guid& result) { static uint16 guidCounter = 0; diff --git a/Source/Engine/Platform/Base/PlatformBase.h b/Source/Engine/Platform/Base/PlatformBase.h index af282c614..c6c99a2c6 100644 --- a/Source/Engine/Platform/Base/PlatformBase.h +++ b/Source/Engine/Platform/Base/PlatformBase.h @@ -616,10 +616,7 @@ public: /// /// Returns true if app is paused. Engine ticking (update/physics/drawing) is disabled in that state, only platform is updated until app end or resume. /// - static bool GetIsPaused() - { - return false; - } + static bool GetIsPaused(); /// /// Creates the unique identifier. diff --git a/Source/ThirdParty/PhysX/foundation/PxIntrinsics.h b/Source/ThirdParty/PhysX/foundation/PxIntrinsics.h index 8ddea2a0f..9f6d4a13a 100644 --- a/Source/ThirdParty/PhysX/foundation/PxIntrinsics.h +++ b/Source/ThirdParty/PhysX/foundation/PxIntrinsics.h @@ -39,7 +39,7 @@ #elif PX_XBOXONE #include "foundation/XboxOne/PxXboxOneIntrinsics.h" #elif PX_SWITCH -#include "foundation/switch/PxSwitchIntrinsics.h" +#include #else #error "Platform not supported!" #endif