CDownloadListGenerator::IsInCoopMode
0x0013e450 · 117 bytes · __cdecl
_ZN22CDownloadListGenerator12IsInCoopModeEv
Decompiled
undefined (0 params)
/* CDownloadListGenerator::IsInCoopMode() */
bool CDownloadListGenerator::IsInCoopMode(void)
{
int iVar1;
char *pcVar2;
int in_GS_OFFSET;
char local_410 [1024];
int local_10;
local_10 = *(int *)(in_GS_OFFSET + 0x14);
pcVar2 = local_410;
for (iVar1 = 0x100; iVar1 != 0; iVar1 = iVar1 + -1) {
pcVar2[0] = '\0';
pcVar2[1] = '\0';
pcVar2[2] = '\0';
pcVar2[3] = '\0';
pcVar2 = pcVar2 + 4;
}
if (serverGameDLL != (int *)0x0) {
(**(code **)(*serverGameDLL + 0x98))(serverGameDLL,local_410,0x400);
}
iVar1 = V_stristr(local_410,"coop");
if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
return iVar1 != 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.