Remove unnecessary includes and fix steamauth exploit
This commit is contained in:
@ -1,102 +1,102 @@
|
||||
#include "STDInclude.hpp"
|
||||
|
||||
namespace Steam
|
||||
{
|
||||
int User::GetHSteamUser()
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool User::LoggedOn()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
SteamID User::GetSteamID()
|
||||
{
|
||||
static unsigned int subId = 0;
|
||||
|
||||
SteamID id;
|
||||
|
||||
if (!subId)
|
||||
{
|
||||
if (Components::Dedicated::IsDedicated() || Components::ZoneBuilder::IsEnabled()) // Dedi guid
|
||||
{
|
||||
subId = ~0xDED1CA7E;
|
||||
}
|
||||
else if (Components::Singleton::IsFirstInstance()) // ECDSA guid
|
||||
{
|
||||
subId = Components::Auth::GetKeyHash();
|
||||
}
|
||||
else // Random guid
|
||||
{
|
||||
subId = (Game::Sys_Milliseconds() + timeGetTime());
|
||||
}
|
||||
|
||||
subId &= ~0x80000000; // Ensure it's positive
|
||||
}
|
||||
|
||||
id.Bits = 0x110000100000000 | subId;
|
||||
return id;
|
||||
}
|
||||
|
||||
int User::InitiateGameConnection(void *pAuthBlob, int cbMaxAuthBlob, SteamID steamIDGameServer, unsigned int unIPServer, unsigned short usPortServer, bool bSecure)
|
||||
{
|
||||
Components::Logger::Print("%s\n", __FUNCTION__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void User::TerminateGameConnection(unsigned int unIPServer, unsigned short usPortServer)
|
||||
{
|
||||
}
|
||||
|
||||
void User::TrackAppUsageEvent(SteamID gameID, int eAppUsageEvent, const char *pchExtraInfo)
|
||||
{
|
||||
}
|
||||
|
||||
bool User::GetUserDataFolder(char *pchBuffer, int cubBuffer)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void User::StartVoiceRecording()
|
||||
{
|
||||
}
|
||||
|
||||
void User::StopVoiceRecording()
|
||||
{
|
||||
}
|
||||
|
||||
int User::GetCompressedVoice(void *pDestBuffer, unsigned int cbDestBufferSize, unsigned int *nBytesWritten)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int User::DecompressVoice(void *pCompressed, unsigned int cbCompressed, void *pDestBuffer, unsigned int cbDestBufferSize, unsigned int *nBytesWritten)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned int User::GetAuthSessionTicket(void *pTicket, int cbMaxTicket, unsigned int *pcbTicket)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int User::BeginAuthSession(const void *pAuthTicket, int cbAuthTicket, SteamID steamID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void User::EndAuthSession(SteamID steamID)
|
||||
{
|
||||
}
|
||||
|
||||
void User::CancelAuthTicket(unsigned int hAuthTicket)
|
||||
{
|
||||
}
|
||||
|
||||
unsigned int User::UserHasLicenseForApp(SteamID steamID, unsigned int appID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#include "STDInclude.hpp"
|
||||
|
||||
namespace Steam
|
||||
{
|
||||
int User::GetHSteamUser()
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool User::LoggedOn()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
SteamID User::GetSteamID()
|
||||
{
|
||||
static unsigned int subId = 0;
|
||||
|
||||
SteamID id;
|
||||
|
||||
if (!subId)
|
||||
{
|
||||
if (Components::Dedicated::IsEnabled() || Components::ZoneBuilder::IsEnabled()) // Dedi guid
|
||||
{
|
||||
subId = ~0xDED1CA7E;
|
||||
}
|
||||
else if (Components::Singleton::IsFirstInstance()) // ECDSA guid
|
||||
{
|
||||
subId = Components::Auth::GetKeyHash();
|
||||
}
|
||||
else // Random guid
|
||||
{
|
||||
subId = (Game::Sys_Milliseconds() + timeGetTime());
|
||||
}
|
||||
|
||||
subId &= ~0x80000000; // Ensure it's positive
|
||||
}
|
||||
|
||||
id.Bits = 0x110000100000000 | subId;
|
||||
return id;
|
||||
}
|
||||
|
||||
int User::InitiateGameConnection(void *pAuthBlob, int cbMaxAuthBlob, SteamID steamIDGameServer, unsigned int unIPServer, unsigned short usPortServer, bool bSecure)
|
||||
{
|
||||
Components::Logger::Print("%s\n", __FUNCTION__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void User::TerminateGameConnection(unsigned int unIPServer, unsigned short usPortServer)
|
||||
{
|
||||
}
|
||||
|
||||
void User::TrackAppUsageEvent(SteamID gameID, int eAppUsageEvent, const char *pchExtraInfo)
|
||||
{
|
||||
}
|
||||
|
||||
bool User::GetUserDataFolder(char *pchBuffer, int cubBuffer)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void User::StartVoiceRecording()
|
||||
{
|
||||
}
|
||||
|
||||
void User::StopVoiceRecording()
|
||||
{
|
||||
}
|
||||
|
||||
int User::GetCompressedVoice(void *pDestBuffer, unsigned int cbDestBufferSize, unsigned int *nBytesWritten)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int User::DecompressVoice(void *pCompressed, unsigned int cbCompressed, void *pDestBuffer, unsigned int cbDestBufferSize, unsigned int *nBytesWritten)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned int User::GetAuthSessionTicket(void *pTicket, int cbMaxTicket, unsigned int *pcbTicket)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int User::BeginAuthSession(const void *pAuthTicket, int cbAuthTicket, SteamID steamID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void User::EndAuthSession(SteamID steamID)
|
||||
{
|
||||
}
|
||||
|
||||
void User::CancelAuthTicket(unsigned int hAuthTicket)
|
||||
{
|
||||
}
|
||||
|
||||
unsigned int User::UserHasLicenseForApp(SteamID steamID, unsigned int appID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user