feat: update sdks, builders, ci (#31)
This commit is contained in:
+2
-9
@@ -7,14 +7,6 @@ project = builder.LibraryProject(projectname + '.ext')
|
||||
project.sources = [
|
||||
'extension.cpp',
|
||||
os.path.join(Extension.sm_root, 'public', 'smsdk_ext.cpp'),
|
||||
os.path.join(Extension.sm_root, 'public', 'CDetour', 'detours.cpp'),
|
||||
os.path.join(Extension.sm_root, 'public', 'asm', 'asm.c'),
|
||||
os.path.join(Extension.sm_root, 'public', 'libudis86', 'decode.c'),
|
||||
os.path.join(Extension.sm_root, 'public', 'libudis86', 'itab.c'),
|
||||
os.path.join(Extension.sm_root, 'public', 'libudis86', 'syn-att.c'),
|
||||
os.path.join(Extension.sm_root, 'public', 'libudis86', 'syn-intel.c'),
|
||||
os.path.join(Extension.sm_root, 'public', 'libudis86', 'syn.c'),
|
||||
os.path.join(Extension.sm_root, 'public', 'libudis86', 'udis86.c')
|
||||
]
|
||||
|
||||
for sdk_name in Extension.sdks:
|
||||
@@ -25,5 +17,6 @@ for sdk_name in Extension.sdks:
|
||||
continue
|
||||
|
||||
binary = Extension.HL2ExtConfig(project, builder, cxx, projectname + '.ext.' + sdk.ext, sdk)
|
||||
Extension.AddCDetour(binary)
|
||||
|
||||
Extension.extensions = builder.Add(project)
|
||||
Extension.extensions = builder.Add(project)
|
||||
|
||||
@@ -45,7 +45,7 @@ typedef enum EAuthProtocol
|
||||
k_EAuthProtocolSteam = 3,
|
||||
} EAuthProtocol;
|
||||
|
||||
#if SOURCE_ENGINE < SE_SDK2013 || SOURCE_ENGINE == SE_TF2 || SOURCE_ENGINE == SE_LEFT4DEAD || SOURCE_ENGINE == SE_LEFT4DEAD2
|
||||
#if SOURCE_ENGINE == SE_LEFT4DEAD || SOURCE_ENGINE == SE_LEFT4DEAD2
|
||||
typedef enum EBeginAuthSessionResult
|
||||
{
|
||||
k_EBeginAuthSessionResultOK = 0, // Ticket is valid for this game and this steamID.
|
||||
@@ -77,11 +77,7 @@ public:
|
||||
const char *CSteamID::Render() const
|
||||
{
|
||||
static char szSteamID[64];
|
||||
#if SOURCE_ENGINE < SE_SDK2013 || SOURCE_ENGINE == SE_TF2 || SOURCE_ENGINE == SE_LEFT4DEAD || SOURCE_ENGINE == SE_LEFT4DEAD2
|
||||
V_snprintf(szSteamID, sizeof(szSteamID), "STEAM_0:%u:%u", (m_unAccountID % 2) ? 1 : 0, (int32)m_unAccountID/2);
|
||||
#else
|
||||
V_snprintf(szSteamID, sizeof(szSteamID), "STEAM_0:%u:%u", (m_steamid.m_comp.m_unAccountID % 2) ? 1 : 0, (int32)m_steamid.m_comp.m_unAccountID/2);
|
||||
#endif
|
||||
V_snprintf(szSteamID, sizeof(szSteamID), "STEAM_0:%u:%u", this->GetAccountID() & 1, this->GetAccountID() >> 1);
|
||||
return szSteamID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user