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;
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);

View File

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

View File

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

View File

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