Switch impl progress
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -420,6 +420,11 @@ ScreenOrientationType PlatformBase::GetScreenOrientationType()
|
||||
return ScreenOrientationType::Unknown;
|
||||
}
|
||||
|
||||
bool PlatformBase::GetIsPaused()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void PlatformBase::CreateGuid(Guid& result)
|
||||
{
|
||||
static uint16 guidCounter = 0;
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user