public: add PSP definitions

This commit is contained in:
Alibek Omarov
2025-10-09 19:50:08 +05:00
parent 4d300e9d30
commit 654d7013c6
3 changed files with 8 additions and 0 deletions

View File

@@ -123,6 +123,8 @@ const char *Q_PlatformStringByID( const int platform )
return "sunos";
case PLATFORM_HURD:
return "hurd";
case PLATFORM_PSP:
return "psp";
}
assert( 0 );

View File

@@ -87,6 +87,7 @@ Then you can use another oneliner to query all variables:
#undef XASH_WIN32
#undef XASH_X86
#undef XASH_NSWITCH
#undef XASH_PSP
#undef XASH_PSVITA
#undef XASH_WASI
#undef XASH_WASM
@@ -100,6 +101,8 @@ Then you can use another oneliner to query all variables:
#define XASH_WIN32 1
#elif defined __WATCOMC__ && defined __DOS__
#define XASH_DOS4GW 1
#elif defined __psp__
#define XASH_PSP 1
#else // POSIX compatible
#define XASH_POSIX 1
#if defined __linux__

View File

@@ -44,6 +44,7 @@ GNU General Public License for more details.
#define PLATFORM_WASI 15
#define PLATFORM_SUNOS 16
#define PLATFORM_HURD 17
#define PLATFORM_PSP 18
#if XASH_WIN32
#define XASH_PLATFORM PLATFORM_WIN32
@@ -79,6 +80,8 @@ GNU General Public License for more details.
#define XASH_PLATFORM PLATFORM_SUNOS
#elif XASH_HURD
#define XASH_PLATFORM PLATFORM_HURD
#elif XASH_PSP
#define XASH_PLATFORM PLATFORM_PSP
#else
#error
#endif