From d3f455649edfe049dd75554de85c1cfb7cc49815 Mon Sep 17 00:00:00 2001 From: SNMetamorph Date: Fri, 7 Mar 2025 00:41:12 +0400 Subject: [PATCH] engine: client: implemented xashid for PS Vita platform --- engine/client/identification.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/engine/client/identification.c b/engine/client/identification.c index 8fee8403..54c69b26 100644 --- a/engine/client/identification.c +++ b/engine/client/identification.c @@ -488,6 +488,10 @@ static int ID_CheckWMIC( bloomfilter_t value, const char *cmdline ) char *IOS_GetUDID( void ); #endif +#if XASH_PSVITA +int PSVita_GetPSID( char *buf, const size_t buflen ); +#endif + static bloomfilter_t ID_GenerateRawId( void ) { bloomfilter_t value = 0; @@ -517,6 +521,14 @@ static bloomfilter_t ID_GenerateRawId( void ) value |= BloomFilter_ProcessStr(IOS_GetUDID()); count ++; } +#endif +#if XASH_PSVITA + { + char data[16]; + PSVita_GetPSID( data, sizeof( data )); + value |= BloomFilter_Process( data, sizeof( data )); + count ++; + } #endif return value; } @@ -556,6 +568,15 @@ static uint ID_CheckRawId( bloomfilter_t filter ) value = 0; } #endif +#if XASH_PSVITA + { + char data[16]; + PSVita_GetPSID( data, sizeof( data )); + value = BloomFilter_Process( data, sizeof( data )); + count += (filter & value) == value; + value = 0; + } +#endif #if 0 Msg( "%s: %d\n", __func__, count ); #endif