L L4D2node

CUGCFileRequest::Steam_OnFileShare

0x00228760 · 236 bytes · __thiscall

_ZN15CUGCFileRequest17Steam_OnFileShareEP30RemoteStorageFileShareResult_tb

Decompiled

undefined (3 params)

/* CUGCFileRequest::Steam_OnFileShare(RemoteStorageFileShareResult_t*, bool) */

void __thiscall
CUGCFileRequest::Steam_OnFileShare
          (CUGCFileRequest *this,RemoteStorageFileShareResult_t *param_1,bool param_2)

{
  undefined4 uVar1;
  char cVar2;
  int in_GS_OFFSET;
  longdouble lVar3;
  char local_124 [260];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  GetFullPath(this,local_124,0x104);
  if (param_2) {
    ThrowError(this,"[UGC] Upload of file %s to Steam cloud failed!\n",local_124);
  }
  else {
    cVar2 = LoggingSystem_IsChannelEnabled(LOG_WORKSHOP,0);
    if (cVar2 != '\0') {
      lVar3 = (longdouble)Plat_FloatTime();
      LoggingSystem_Log(LOG_WORKSHOP,0,"[UGC] File %s shared to user cloud. UGC ID: %llu (%f)\n",
                        local_124,*(undefined4 *)(param_1 + 4),*(undefined4 *)(param_1 + 8),
                        (double)lVar3);
    }
    uVar1 = *(undefined4 *)(param_1 + 8);
    *(undefined4 *)(this + 0x38c) = *(undefined4 *)(param_1 + 4);
    *(undefined4 *)(this + 0x390) = uVar1;
    MarkCompleteAndFree(this);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

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)