// // SpawnTriggerGameObject::getSaveString from 0x783164 to 0x7836c8 (1380 bytes) // // 2 xrefs: // > @ 0x2da98 // > @ 0x116ebb0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __usercall SpawnTriggerGameObject::getSaveString@( SpawnTriggerGameObject *this@, GJBaseGameLayer *a2@, __int64 a3@) { ChanceObject *m_start; // x20 ChanceObject *m_finish; // x26 size_t v7; // x22 unsigned __int64 v8; // x21 size_t v9; // x22 size_t v10; // x21 size_t v11; // x20 float m_spawnDelay; // s0 float m_delayRange; // s0 const char *v15; // [xsp+D0h] [xbp+D0h] BYREF _DWORD v16[5]; // [xsp+D8h] [xbp+D8h] BYREF char v17; // [xsp+ECh] [xbp+ECh] _DWORD v18[5]; // [xsp+F0h] [xbp+F0h] BYREF char v19; // [xsp+104h] [xbp+104h] size_t v20; // [xsp+108h] [xbp+108h] BYREF unsigned __int64 v21; // [xsp+110h] [xbp+110h] char *v22; // [xsp+118h] [xbp+118h] _BYTE v23[504]; // [xsp+120h] [xbp+120h] BYREF v20 = 0; v21 = 500; v22 = v23; EffectGameObject::getSaveString(this, a2, (__int64)&v15); fmt::BasicWriter::operator<<(&v20, v15, *((_QWORD *)v15 - 3)); if ( v15 - 24 != (const char *)&qword_124B6B0 ) sub_74B3A8((void *)(v15 - 24)); if ( this->m_targetGroupID ) { fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x33u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v20, this->m_targetGroupID); if ( this->m_spawnDelay == 0.0 ) { LABEL_5: if ( this->m_delayRange == 0.0 ) goto LABEL_6; goto LABEL_25; } } else if ( this->m_spawnDelay == 0.0 ) { goto LABEL_5; } fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x3Fu); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); m_spawnDelay = this->m_spawnDelay; v16[1] = 32; v16[0] = 0; v16[2] = 0; v16[3] = 0; v16[4] = -1; v17 = 0; fmt::BasicWriter::FormatDouble(&v20, v16, m_spawnDelay); if ( this->m_delayRange == 0.0 ) { LABEL_6: if ( !this->m_previewDisable ) goto LABEL_7; goto LABEL_26; } LABEL_25: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x22Cu); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); m_delayRange = this->m_delayRange; v18[1] = 32; v18[0] = 0; v18[2] = 0; v18[3] = 0; v18[4] = -1; v19 = 0; fmt::BasicWriter::FormatDouble(&v20, v18, m_delayRange); if ( !this->m_previewDisable ) { LABEL_7: if ( !this->m_spawnOrdered ) goto LABEL_8; LABEL_27: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x1B9u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v20, this->m_spawnOrdered); if ( !this->m_resetRemap ) goto LABEL_9; LABEL_28: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x245u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, this->m_resetRemap); goto LABEL_9; } LABEL_26: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x66u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v20, this->m_previewDisable); if ( this->m_spawnOrdered ) goto LABEL_27; LABEL_8: if ( this->m_resetRemap ) goto LABEL_28; LABEL_9: if ( this->m_remapObjects.m_finish != this->m_remapObjects.m_start ) { fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x1BAu); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); m_start = this->m_remapObjects.m_start; m_finish = this->m_remapObjects.m_finish; if ( m_start != m_finish ) { fmt::BasicWriter::FormatInt,char>>( &v20, m_start->m_groupID); v7 = v20; v8 = v20 + 1; if ( v20 + 1 > v21 ) goto LABEL_16; while ( 1 ) { v20 = v8; v22[v7] = 46; fmt::BasicWriter::FormatInt,char>>( &v20, m_start->m_chance); if ( m_finish == ++m_start ) break; v9 = v20; v10 = v20 + 1; if ( v20 + 1 > v21 ) fmt::internal::Array::grow(&v20, v20 + 1); v20 = v10; v22[v9] = 46; fmt::BasicWriter::FormatInt,char>>( &v20, m_start->m_groupID); v7 = v20; v8 = v20 + 1; if ( v20 + 1 > v21 ) LABEL_16: fmt::internal::Array::grow(&v20, v8); } } } v11 = v20; if ( v21 < v20 + 1 ) fmt::internal::Array::grow(&v20, v20 + 1); v22[v11] = 0; sub_D153B8(a3, v22); if ( v22 != v23 && v22 ) operator delete[](v22); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source