forked from cafeberry/4JLibs
feat: start durango profile lib
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include "PRO_Sys.h"
|
||||
|
||||
CSys::CSys() {}
|
||||
|
||||
//str1k3r - 1:1 to decomp
|
||||
bool CSys::LocaleIsUSorCanada()
|
||||
{
|
||||
GEOID UserGeoID;
|
||||
|
||||
UserGeoID = GetUserGeoID(GEOCLASS_NATION);
|
||||
return UserGeoID == 39 || UserGeoID == 244;
|
||||
}
|
||||
|
||||
//str1k3r - missing from TU18 Libs, added in TU19/20
|
||||
bool CSys::LocaleIsChina()
|
||||
{
|
||||
GEOID UserGeoID;
|
||||
|
||||
UserGeoID = GetUserGeoID(GEOCLASS_NATION);
|
||||
return UserGeoID == 45;
|
||||
}
|
||||
Reference in New Issue
Block a user