engine: client: implemented xashid for PS Vita platform

This commit is contained in:
SNMetamorph
2025-03-07 00:41:12 +04:00
committed by Alibek Omarov
parent 17ff80d85d
commit d3f455649e

View File

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