feat: Durango Lib parity + remove stubs

This commit is contained in:
2026-09-12 17:31:48 -04:00
parent 0440f9974b
commit 0ef661392f
5 changed files with 59 additions and 6 deletions
+26 -4
View File
@@ -5,6 +5,11 @@ bool s_bProfileIsFullVersion = true;
char fakeGamerTag[16] = "PlayerName";
wchar_t fakeGamerTagW[16] = L"PlayerName";
CSys::CSys()
{
m_iPrimaryPad = 0;
}
bool CSys::IsSignedIn(int iQuadrant)
{
return InputManager.IsPadConnected(iQuadrant); //str1k3r - since we dont sign in like consoles just check if the pad is connected
@@ -101,12 +106,17 @@ bool CSys::AllowedToPlayMultiplayer(int iProf)
int CSys::GetPrimaryPad()
{
return 0;
return m_iPrimaryPad;
}
void CSys::SetPrimaryPad(int iPad)
{
; //str1k3r - stubbed out
m_iPrimaryPad = iPad;
}
void CSys::SetDebugFullOverride(bool bVal)
{
s_bProfileIsFullVersion = bVal;
}
bool CSys::IsFullVersion()
@@ -114,7 +124,19 @@ bool CSys::IsFullVersion()
return s_bProfileIsFullVersion;
}
void CSys::SetDebugFullOverride(bool bVal)
//str1k3r - fun fact this is 1:1 to the Durango lib
bool CSys::LocaleIsUSorCanada()
{
s_bProfileIsFullVersion = bVal;
GEOID UserGeoID;
UserGeoID = GetUserGeoID(GEOCLASS_NATION);
return UserGeoID == 39 || UserGeoID == 244;
}
bool CSys::LocaleIsChina()
{
GEOID UserGeoID;
UserGeoID = GetUserGeoID(GEOCLASS_NATION);
return UserGeoID == 45;
}