L L4D2node

CWorkshopFileInfoManager::UpdatePublishedFileInfoQueries

0x0021cb90 · 419 bytes · __thiscall

_ZN24CWorkshopFileInfoManager30UpdatePublishedFileInfoQueriesEv

Decompiled

undefined (1 param)

/* CWorkshopFileInfoManager::UpdatePublishedFileInfoQueries() */

void __thiscall
CWorkshopFileInfoManager::UpdatePublishedFileInfoQueries(CWorkshopFileInfoManager *this)

{
  char cVar1;
  int *piVar2;
  int iVar3;
  longlong lVar4;
  
  iVar3 = *(int *)(this + 0x68);
  if ((iVar3 != 0) && (*(int *)(this + 0x74) == 0)) {
    while (iVar3 != 0) {
      *(undefined4 *)(this + 0x70) = **(undefined4 **)(this + 0x5c);
      CUtlVector<CBasePublishedFileRequest*,CUtlMemory<CBasePublishedFileRequest*,int>>::
      ShiftElementsLeft((CUtlVector<CBasePublishedFileRequest*,CUtlMemory<CBasePublishedFileRequest*,int>>
                         *)(this + 0x5c),0,1);
      iVar3 = *(int *)(this + 0x70);
      *(int *)(this + 0x68) = *(int *)(this + 0x68) + -1;
      piVar2 = (int *)GetISteamRemoteStorage();
      lVar4 = (**(code **)(*piVar2 + 0x9c))
                        (piVar2,*(undefined4 *)(iVar3 + 4),*(undefined4 *)(iVar3 + 8),0);
      if (lVar4 != 0) {
        cVar1 = LoggingSystem_IsChannelEnabled(LOG_WORKSHOP,0);
        if (cVar1 != '\0') {
          LoggingSystem_Log(LOG_WORKSHOP,0,
                            "[BaseModPanel] Querying for details of published file: %llu\n",
                            *(undefined4 *)(iVar3 + 4),*(undefined4 *)(iVar3 + 8));
        }
        if (*(int *)(this + 0x10) != 0 || *(int *)(this + 0xc) != 0) {
          SteamAPI_UnregisterCallResult(this,*(int *)(this + 0xc),*(int *)(this + 0x10));
        }
        *(longlong *)(this + 0xc) = lVar4;
        *(CWorkshopFileInfoManager **)(this + 0x14) = this;
        *(code **)(this + 0x18) = Steam_OnGetPublishedFileDetails;
        *(undefined4 *)(this + 0x1c) = 0;
        SteamAPI_RegisterCallResult(this,lVar4);
        *(int *)(this + 0x74) = iVar3;
        return;
      }
      cVar1 = LoggingSystem_IsChannelEnabled(LOG_WORKSHOP,0);
      if (cVar1 != '\0') {
        LoggingSystem_Log(LOG_WORKSHOP,0,
                          "[BaseModPanel] Failed to query for details on published file: %llu\n",
                          *(undefined4 *)(iVar3 + 4),*(undefined4 *)(iVar3 + 8));
      }
      iVar3 = *(int *)(this + 0x68);
    }
  }
  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)