L L4D2node

UGCOperationsLessFunc

0x00222950 · 59 bytes · __cdecl

_Z21UGCOperationsLessFuncRKP16UGCFileRequest_tS2_

Decompiled

undefined (2 params)

/* UGCOperationsLessFunc(UGCFileRequest_t* const&, UGCFileRequest_t* const&) */

bool UGCOperationsLessFunc(UGCFileRequest_t **param_1,UGCFileRequest_t **param_2)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = *(uint *)(*param_1 + 800);
  uVar2 = *(uint *)(*param_2 + 800);
  if (uVar1 != uVar2) {
    return uVar1 < uVar2;
  }
  return *(uint *)(*param_2 + 0x324) <= *(uint *)(*param_1 + 0x324);
}

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)