__frame_state_for
0x0029d9a0 · 203 bytes · unknown
Decompiled
undefined (0 params)
int __frame_state_for(int param_1,int param_2)
{
char cVar1;
int iVar2;
undefined4 *puVar3;
undefined4 auStack_14c [19];
int local_100;
undefined4 local_ec;
undefined4 local_e4;
undefined4 local_cc [37];
undefined4 local_38;
undefined2 local_34;
int local_2c;
undefined2 local_18;
undefined4 local_10;
puVar3 = auStack_14c;
for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
local_ec = 0x40000000;
local_100 = param_1 + 1;
iVar2 = uw_frame_state_for();
if ((iVar2 != 0) || (local_2c == 2)) {
return 0;
}
iVar2 = 0;
do {
while( true ) {
cVar1 = (char)local_cc[iVar2 * 2 + 1];
*(char *)(param_2 + 0x5c + iVar2) = cVar1;
if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;
*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_cc[iVar2 * 2];
iVar2 = iVar2 + 1;
if (iVar2 == 0x12) goto LAB_0029da27;
}
*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;
iVar2 = iVar2 + 1;
} while (iVar2 != 0x12);
LAB_0029da27:
*(undefined4 *)(param_2 + 8) = local_38;
*(undefined2 *)(param_2 + 0x58) = local_34;
*(undefined2 *)(param_2 + 0x5a) = local_18;
*(undefined4 *)(param_2 + 0xc) = local_e4;
*(undefined4 *)(param_2 + 4) = local_10;
return param_2;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
⚠ This function has no mangled symbol — it may be internal/static. The
Linux gamedata field uses @-prefix symbol resolution which
requires an exported mangled name. You'll need a Linux byte signature
for this one (extract via extract_signature.java).
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.