LogMultiline
0x001ae330 · 447 bytes · __cdecl
_Z12LogMultilinebPKcS0_j
Decompiled
undefined (4 params)
/* LogMultiline(bool, char const*, char const*, unsigned int) */
void LogMultiline(bool param_1,char *param_2,char *param_3,uint param_4)
{
byte bVar1;
undefined *puVar2;
uint uVar3;
int iVar4;
byte bVar5;
uint uVar6;
uint uVar7;
int in_GS_OFFSET;
undefined4 local_71;
undefined4 local_6d;
undefined4 local_69;
undefined4 local_65;
undefined4 local_61;
undefined4 local_5d;
undefined1 local_59;
undefined4 local_58;
undefined4 local_54;
undefined4 local_50;
undefined4 local_4c;
undefined4 local_48;
undefined4 local_44;
undefined4 local_40;
undefined4 local_3c;
undefined4 local_38;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
uint local_24;
int local_20;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
puVar2 = &DAT_002baeef;
if (param_1) {
puVar2 = &DAT_002baeea;
}
for (; param_4 != 0; param_4 = param_4 - uVar3) {
local_71 = 0x20202020;
local_6d = 0x20202020;
local_69 = 0x20202020;
local_65 = 0x20202020;
uVar3 = 0x18;
if (param_4 < 0x19) {
uVar3 = param_4;
}
local_61 = 0x20202020;
uVar6 = 0;
local_5d = 0x20202020;
local_59 = 0x20;
local_58 = 0x20202020;
local_54 = 0x20202020;
local_50 = 0x20202020;
local_4c = 0x20202020;
local_48 = 0x20202020;
local_44 = 0x20202020;
local_40 = 0x20202020;
local_3c = 0x20202020;
local_38 = 0x20202020;
local_34 = 0x20202020;
local_30 = 0x20202020;
local_2c = 0x20202020;
local_28 = 0x20202020;
local_24 = 0x20202020;
do {
bVar1 = param_3[uVar6];
uVar7 = (uint)bVar1;
iVar4 = isprint(uVar7);
bVar5 = 0x2e;
if (iVar4 != 0) {
iVar4 = iscntrl(uVar7);
bVar5 = 0x2e;
if (iVar4 == 0) {
bVar5 = bVar1;
}
}
*(byte *)((int)&local_71 + uVar6) = bVar5;
iVar4 = (uVar6 >> 2) + uVar6 * 2;
uVar6 = uVar6 + 1;
*(char *)((int)&local_58 + iVar4) = "0123456789abcdef"[(int)uVar7 >> 4];
*(char *)((int)&local_58 + iVar4 + 1) = "0123456789abcdef"[uVar7 & 0xf];
} while (uVar6 < uVar3);
local_59 = 0;
local_24 = local_24 & 0xffffff;
Msg("%s %s %s %s \n",param_2,puVar2,&local_71,&local_58);
param_3 = param_3 + uVar3;
}
if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
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.