small fixes
This commit is contained in:
parent
a04e8479e3
commit
ed8e98e313
@ -18,10 +18,6 @@ namespace dvars
|
|||||||
game::dvar_t* con_inputDvarValueColor = nullptr;
|
game::dvar_t* con_inputDvarValueColor = nullptr;
|
||||||
game::dvar_t* con_inputDvarInactiveValueColor = nullptr;
|
game::dvar_t* con_inputDvarInactiveValueColor = nullptr;
|
||||||
game::dvar_t* con_inputCmdMatchColor = nullptr;
|
game::dvar_t* con_inputCmdMatchColor = nullptr;
|
||||||
game::dvar_t* g_playerEjection = nullptr;
|
|
||||||
game::dvar_t* g_playerCollision = nullptr;
|
|
||||||
game::dvar_t* player_sustainAmmo = nullptr;
|
|
||||||
game::dvar_t* g_enableElevators = nullptr;
|
|
||||||
|
|
||||||
std::string dvar_get_vector_domain(const int components, const game::dvar_limits& domain)
|
std::string dvar_get_vector_domain(const int components, const game::dvar_limits& domain)
|
||||||
{
|
{
|
||||||
@ -141,7 +137,7 @@ namespace dvars
|
|||||||
return offset->second;
|
return offset->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
return "name not found";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
void dvar_set_name(const game::dvar_t* dvar, const std::string& name)
|
void dvar_set_name(const game::dvar_t* dvar, const std::string& name)
|
||||||
|
@ -295,6 +295,33 @@ namespace game
|
|||||||
vec2_t subScreenLeft;
|
vec2_t subScreenLeft;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum netadrtype_t
|
||||||
|
{
|
||||||
|
NA_BOT = 0x0,
|
||||||
|
NA_BAD = 0x1,
|
||||||
|
NA_LOOPBACK = 0x2,
|
||||||
|
NA_BROADCAST = 0x3,
|
||||||
|
NA_IP = 0x4,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum netsrc_t
|
||||||
|
{
|
||||||
|
NS_CLIENT1 = 0x0,
|
||||||
|
NS_MAXCLIENTS = 0x1,
|
||||||
|
NS_SERVER = 0x2,
|
||||||
|
NS_PACKET = 0x3,
|
||||||
|
NS_INVALID_NETSRC = 0x4,
|
||||||
|
};
|
||||||
|
|
||||||
|
struct netadr_s
|
||||||
|
{
|
||||||
|
netadrtype_t type;
|
||||||
|
unsigned char ip[4];
|
||||||
|
unsigned __int16 port;
|
||||||
|
netsrc_t localNetID;
|
||||||
|
unsigned int addrHandleIndex;
|
||||||
|
};
|
||||||
|
|
||||||
namespace assets
|
namespace assets
|
||||||
{
|
{
|
||||||
enum XAssetType : std::int32_t
|
enum XAssetType : std::int32_t
|
||||||
|
@ -8,7 +8,7 @@ namespace tls
|
|||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
utils::binary_resource tls_dll_file(TLS_DLL, "h1-tlsdll.dll");
|
utils::binary_resource tls_dll_file(TLS_DLL, "iw7-tlsdll.dll");
|
||||||
}
|
}
|
||||||
|
|
||||||
PIMAGE_TLS_DIRECTORY allocate_tls_index()
|
PIMAGE_TLS_DIRECTORY allocate_tls_index()
|
||||||
|
@ -132,7 +132,7 @@ namespace steam
|
|||||||
{
|
{
|
||||||
const auto id = this->GetSteamID();
|
const auto id = this->GetSteamID();
|
||||||
|
|
||||||
auth_ticket = "S1";
|
auth_ticket = "IW7";
|
||||||
auth_ticket.resize(32);
|
auth_ticket.resize(32);
|
||||||
auth_ticket.append(static_cast<char*>(pUserData), 24); // key
|
auth_ticket.append(static_cast<char*>(pUserData), 24); // key
|
||||||
auth_ticket.append(reinterpret_cast<const char*>(&id.bits), sizeof(id.bits)); // user id
|
auth_ticket.append(reinterpret_cast<const char*>(&id.bits), sizeof(id.bits)); // user id
|
||||||
|
@ -50,7 +50,7 @@ namespace steam
|
|||||||
|
|
||||||
unsigned int utils::GetAppID()
|
unsigned int utils::GetAppID()
|
||||||
{
|
{
|
||||||
return 209660;
|
return 292730;
|
||||||
}
|
}
|
||||||
|
|
||||||
void utils::SetOverlayNotificationPosition(int eNotificationPosition)
|
void utils::SetOverlayNotificationPosition(int eNotificationPosition)
|
||||||
|
@ -28,7 +28,7 @@ namespace exception
|
|||||||
char pathname[MAX_PATH] = {0};
|
char pathname[MAX_PATH] = {0};
|
||||||
|
|
||||||
GetTempPathA(sizeof(pathname), pathname);
|
GetTempPathA(sizeof(pathname), pathname);
|
||||||
GetTempFileNameA(pathname, "H1-", 0, filename);
|
GetTempFileNameA(pathname, "IW7-", 0, filename);
|
||||||
return filename;
|
return filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user