Switch impl progress

This commit is contained in:
Wojtek Figat
2021-03-09 19:18:40 +01:00
parent f82117c6fb
commit e09f4eb6dc
4 changed files with 9 additions and 5 deletions

View File

@@ -47,6 +47,8 @@ public class Audio : EngineModule
useOpenAL = true; useOpenAL = true;
break; break;
case TargetPlatform.Switch: 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; useNone = true;
break; break;
default: throw new InvalidPlatformException(options.Platform.Target); default: throw new InvalidPlatformException(options.Platform.Target);

View File

@@ -420,6 +420,11 @@ ScreenOrientationType PlatformBase::GetScreenOrientationType()
return ScreenOrientationType::Unknown; return ScreenOrientationType::Unknown;
} }
bool PlatformBase::GetIsPaused()
{
return false;
}
void PlatformBase::CreateGuid(Guid& result) void PlatformBase::CreateGuid(Guid& result)
{ {
static uint16 guidCounter = 0; static uint16 guidCounter = 0;

View File

@@ -616,10 +616,7 @@ public:
/// <summary> /// <summary>
/// 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. /// 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.
/// </summary> /// </summary>
static bool GetIsPaused() static bool GetIsPaused();
{
return false;
}
/// <summary> /// <summary>
/// Creates the unique identifier. /// Creates the unique identifier.

View File

@@ -39,7 +39,7 @@
#elif PX_XBOXONE #elif PX_XBOXONE
#include "foundation/XboxOne/PxXboxOneIntrinsics.h" #include "foundation/XboxOne/PxXboxOneIntrinsics.h"
#elif PX_SWITCH #elif PX_SWITCH
#include "foundation/switch/PxSwitchIntrinsics.h" #include <Platforms/Switch/ThirdParty/PhysX/PxSwitchIntrinsics.h>
#else #else
#error "Platform not supported!" #error "Platform not supported!"
#endif #endif