diff --git a/public/build.c b/public/build.c index 49a82112..361a7b90 100644 --- a/public/build.c +++ b/public/build.c @@ -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 ); diff --git a/public/build.h b/public/build.h index bba120be..d7bb6a8d 100644 --- a/public/build.h +++ b/public/build.h @@ -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__ diff --git a/public/buildenums.h b/public/buildenums.h index f4f3e155..7ffb3864 100644 --- a/public/buildenums.h +++ b/public/buildenums.h @@ -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