Add PLATFORM_CONSOLE define and fix desktop to be as Windows/UWP, not Win32

This commit is contained in:
Wojtek Figat
2025-08-12 12:34:32 +02:00
parent cdff7708fb
commit 278dead0bd
5 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -8,6 +8,7 @@
// Platform description
#define PLATFORM_TYPE PlatformType::UWP
#define PLATFORM_DESKTOP 1
// Use AOT for Mono
#define USE_MONO_AOT 1

View File

@@ -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

View File

@@ -9,5 +9,6 @@
// Platform description
#define PLATFORM_TYPE PlatformType::Windows
#define PLATFORM_HAS_HEADLESS_MODE 1
#define PLATFORM_DESKTOP 1
#endif