Switch impl progress
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user