From 925680b44d2c70acd8c485394666f8d12b0bd251 Mon Sep 17 00:00:00 2001 From: david krekic Date: Tue, 17 Jun 2025 05:58:00 +0200 Subject: [PATCH] Added IsMapbase() defined funtion --- sp/src/public/tier0/platform.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/sp/src/public/tier0/platform.h b/sp/src/public/tier0/platform.h index 25bf9bc1644..a5accca64f0 100644 --- a/sp/src/public/tier0/platform.h +++ b/sp/src/public/tier0/platform.h @@ -1276,14 +1276,19 @@ inline bool Plat_IsInDebugSession( bool bForceRecheck = false ) { return false; //----------------------------------------------------------------------------- PLATFORM_INTERFACE bool Is64BitOS(); - -#ifdef MAPBASE //----------------------------------------------------------------------------- // General Mapbase version constants compiled into projects for versioning purposes //----------------------------------------------------------------------------- -#define MAPBASE_VERSION "7.3" -#define MAPBASE_VER_INT 7300 // For use in #if in a similar fashion to macros like _MSC_VER -#endif +#ifdef MAPBASE +#define MAPBASE_VERSION "8.0" +#define MAPBASE_VER_INT 8000 // For use in #if in a similar fashion to macros like _MSC_VER +#endif // MAPBASE + +#ifdef MAPBASE +#define IsMapbase() true +#else +#define IsMapbase() false +#endif // MAPBASE //-----------------------------------------------------------------------------