Add PLATFORM_CONSOLE define and fix desktop to be as Windows/UWP, not Win32
This commit is contained in:
@@ -202,7 +202,7 @@ bool GraphicsService::Init()
|
||||
#endif
|
||||
)
|
||||
{
|
||||
#if !USE_EDITOR && BUILD_RELEASE && !PLATFORM_LINUX // IsDebugToolAttached seams to be enabled on many Linux machines via VK_EXT_tooling_info
|
||||
#if !USE_EDITOR && BUILD_RELEASE && !PLATFORM_LINUX && !PLATFORM_CONSOLE // IsDebugToolAttached seams to be enabled on many Linux machines via VK_EXT_tooling_info
|
||||
// Block graphics debugging to protect contents
|
||||
Platform::Fatal(TEXT("Graphics debugger attached."));
|
||||
#endif
|
||||
|
||||
@@ -174,6 +174,9 @@ API_ENUM() enum class ArchitectureType
|
||||
#ifndef PLATFORM_DESKTOP
|
||||
#define PLATFORM_DESKTOP 0
|
||||
#endif
|
||||
#ifndef PLATFORM_CONSOLE
|
||||
#define PLATFORM_CONSOLE 0
|
||||
#endif
|
||||
#ifndef PLATFORM_ARCH_X64
|
||||
#define PLATFORM_ARCH_X64 0
|
||||
#endif
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
// Platform description
|
||||
#define PLATFORM_TYPE PlatformType::UWP
|
||||
#define PLATFORM_DESKTOP 1
|
||||
|
||||
// Use AOT for Mono
|
||||
#define USE_MONO_AOT 1
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#if PLATFORM_WIN32
|
||||
|
||||
// Platform description
|
||||
#define PLATFORM_DESKTOP 1
|
||||
#if defined(WIN64) && defined(_M_X64)
|
||||
#define PLATFORM_64BITS 1
|
||||
#define PLATFORM_ARCH_X64 1
|
||||
|
||||
@@ -9,5 +9,6 @@
|
||||
// Platform description
|
||||
#define PLATFORM_TYPE PlatformType::Windows
|
||||
#define PLATFORM_HAS_HEADLESS_MODE 1
|
||||
#define PLATFORM_DESKTOP 1
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user