L L4D2node

GCSDK::CSchema::IndexField

0x0008eea0 · 326 bytes · __thiscall

_ZN5GCSDK7CSchema10IndexFieldEPKcS2_

Decompiled

undefined (3 params)

/* GCSDK::CSchema::IndexField(char const*, char const*) */

void __thiscall GCSDK::CSchema::IndexField(CSchema *this,char *param_1,char *param_2)

{
  char cVar1;
  int iVar2;
  int iVar3;
  int in_GS_OFFSET;
  CDbgFmtMsg local_120 [256];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FindIField(this,param_2);
  if (iVar2 != -1) goto LAB_0008eed9;
  CDbgFmtMsg::CDbgFmtMsg
            (local_120,"Could not find index column \"%s\" on table \"%s\"",param_2,this + 8);
  iVar3 = LoggingSystem_LogAssert
                    ("%s (%d) : %s\n","/data/src/gcsdk/sqlaccess/schema.cpp",0x334,local_120);
  if (iVar3 != 1) goto LAB_0008eed9;
  cVar1 = ShouldUseNewAssertDialog();
  if (cVar1 == '\0') {
LAB_0008ef72:
    raise(5);
  }
  else {
    CDbgFmtMsg::CDbgFmtMsg
              (local_120,"Could not find index column \"%s\" on table \"%s\"",param_2,this + 8);
                    /* try { // try from 0008efdd to 0008efe1 has its CatchHandler @ 0008eff5 */
    cVar1 = DoNewAssertDialog("/data/src/gcsdk/sqlaccess/schema.cpp",0x334,local_120);
    if (cVar1 != '\0') goto LAB_0008ef72;
  }
  _ExitOnFatalAssert("/data/src/gcsdk/sqlaccess/schema.cpp",0x334);
LAB_0008eed9:
  AddIndexToFieldNumber(this,iVar2,param_1);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}

SourceMod gamedata

paste into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)