// // SequenceTriggerGameObject::getSaveString from 0x780708 to 0x780bfc (1268 bytes) // // 2 xrefs: // > @ 0x3c768 // > @ 0x116c3b0 // // 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 SequenceTriggerGameObject::getSaveString@( SequenceTriggerGameObject *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_minInt; // s0 float m_reset; // s0 const char *v15; // [xsp+C0h] [xbp+C0h] BYREF _DWORD v16[5]; // [xsp+C8h] [xbp+C8h] BYREF char v17; // [xsp+DCh] [xbp+DCh] _DWORD v18[5]; // [xsp+E0h] [xbp+E0h] BYREF char v19; // [xsp+F4h] [xbp+F4h] size_t v20; // [xsp+F8h] [xbp+F8h] BYREF unsigned __int64 v21; // [xsp+100h] [xbp+100h] char *v22; // [xsp+108h] [xbp+108h] _BYTE v23[504]; // [xsp+110h] [xbp+110h] 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_minInt == 0.0 ) { if ( !this->m_sequenceMode ) goto LABEL_5; } else { fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x1B5u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); m_minInt = this->m_minInt; v16[1] = 32; v16[0] = 0; v16[2] = 0; v16[3] = 0; v16[4] = -1; v17 = 0; fmt::BasicWriter::FormatDouble(&v20, v16, m_minInt); if ( !this->m_sequenceMode ) { LABEL_5: if ( !this->m_resetMode ) goto LABEL_6; goto LABEL_24; } } fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x1B4u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, this->m_sequenceMode); if ( !this->m_resetMode ) { LABEL_6: if ( this->m_reset == 0.0 ) goto LABEL_7; LABEL_25: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x1B6u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); m_reset = this->m_reset; v18[1] = 32; v18[0] = 0; v18[2] = 0; v18[3] = 0; v18[4] = -1; v19 = 0; fmt::BasicWriter::FormatDouble(&v20, v18, m_reset); if ( !this->m_uniqueRemap ) goto LABEL_8; LABEL_26: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x1F9u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v20, this->m_uniqueRemap); goto LABEL_8; } LABEL_24: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x1B7u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, this->m_resetMode); if ( this->m_reset != 0.0 ) goto LABEL_25; LABEL_7: if ( this->m_uniqueRemap ) goto LABEL_26; LABEL_8: if ( this->m_chanceObjects.m_finish != this->m_chanceObjects.m_start ) { fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x1B3u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); m_start = this->m_chanceObjects.m_start; m_finish = this->m_chanceObjects.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_15; 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_15: 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