// // ShaderGameObject::getSaveString from 0x77a090 to 0x77b34c (4796 bytes) // // 2 xrefs: // > @ 0x99f78 // > @ 0x1163b90 // // 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 ShaderGameObject::getSaveString@( ShaderGameObject *this@, GJBaseGameLayer *a2@, __int64 a3@) { size_t v5; // x20 float m_speed; // s0 float m_strength; // s0 float m_outer; // s0 float m_timeOff; // s0 float m_screenOffsetX; // s0 float m_screenOffsetY; // s0 float m_waveWidth; // s0 float m_targetX; // s0 float m_targetY; // s0 float m_fadeIn; // s0 float m_fadeOut; // s0 float m_inner; // s0 float m_maxSize; // s0 float m_duration; // s0 float m_easingRate; // s0 float v22; // s0 const char *v23; // [xsp+200h] [xbp+200h] BYREF _DWORD v24[5]; // [xsp+208h] [xbp+208h] BYREF char v25; // [xsp+21Ch] [xbp+21Ch] _DWORD v26[5]; // [xsp+220h] [xbp+220h] BYREF char v27; // [xsp+234h] [xbp+234h] _DWORD v28[5]; // [xsp+238h] [xbp+238h] BYREF char v29; // [xsp+24Ch] [xbp+24Ch] _DWORD v30[5]; // [xsp+250h] [xbp+250h] BYREF char v31; // [xsp+264h] [xbp+264h] _DWORD v32[5]; // [xsp+268h] [xbp+268h] BYREF char v33; // [xsp+27Ch] [xbp+27Ch] _DWORD v34[5]; // [xsp+280h] [xbp+280h] BYREF char v35; // [xsp+294h] [xbp+294h] _DWORD v36[5]; // [xsp+298h] [xbp+298h] BYREF char v37; // [xsp+2ACh] [xbp+2ACh] _DWORD v38[5]; // [xsp+2B0h] [xbp+2B0h] BYREF char v39; // [xsp+2C4h] [xbp+2C4h] _DWORD v40[5]; // [xsp+2C8h] [xbp+2C8h] BYREF char v41; // [xsp+2DCh] [xbp+2DCh] _DWORD v42[5]; // [xsp+2E0h] [xbp+2E0h] BYREF char v43; // [xsp+2F4h] [xbp+2F4h] _DWORD v44[5]; // [xsp+2F8h] [xbp+2F8h] BYREF char v45; // [xsp+30Ch] [xbp+30Ch] _DWORD v46[5]; // [xsp+310h] [xbp+310h] BYREF char v47; // [xsp+324h] [xbp+324h] _DWORD v48[5]; // [xsp+328h] [xbp+328h] BYREF char v49; // [xsp+33Ch] [xbp+33Ch] _DWORD v50[5]; // [xsp+340h] [xbp+340h] BYREF char v51; // [xsp+354h] [xbp+354h] _DWORD v52[5]; // [xsp+358h] [xbp+358h] BYREF char v53; // [xsp+36Ch] [xbp+36Ch] _DWORD v54[5]; // [xsp+370h] [xbp+370h] BYREF char v55; // [xsp+384h] [xbp+384h] size_t v56; // [xsp+388h] [xbp+388h] BYREF unsigned __int64 v57; // [xsp+390h] [xbp+390h] char *v58; // [xsp+398h] [xbp+398h] _BYTE v59[504]; // [xsp+3A0h] [xbp+3A0h] BYREF v56 = 0; v57 = 500; v58 = v59; EffectGameObject::getSaveString(this, a2, (__int64)&v23); fmt::BasicWriter::operator<<(&v56, v23, *((_QWORD *)v23 - 3)); if ( v23 - 24 != (const char *)&qword_124B6B0 ) sub_74B3A8((void *)(v23 - 24)); if ( this->m_speed == 0.0 ) { if ( this->m_strength == 0.0 ) goto LABEL_5; } else { fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xAFu); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_speed = this->m_speed; v24[1] = 32; v24[0] = 0; v24[2] = 0; v24[3] = 0; v24[4] = -1; v25 = 0; fmt::BasicWriter::FormatDouble(&v56, v24, m_speed); if ( this->m_strength == 0.0 ) { LABEL_5: if ( this->m_outer == 0.0 ) goto LABEL_6; goto LABEL_47; } } fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xB0u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_strength = this->m_strength; v26[1] = 32; v26[0] = 0; v26[2] = 0; v26[3] = 0; v26[4] = -1; v27 = 0; fmt::BasicWriter::FormatDouble(&v56, v26, m_strength); if ( this->m_outer == 0.0 ) { LABEL_6: if ( this->m_timeOff == 0.0 ) goto LABEL_7; goto LABEL_48; } LABEL_47: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xBFu); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_outer = this->m_outer; v28[1] = 32; v28[0] = 0; v28[2] = 0; v28[3] = 0; v28[4] = -1; v29 = 0; fmt::BasicWriter::FormatDouble(&v56, v28, m_outer); if ( this->m_timeOff == 0.0 ) { LABEL_7: if ( this->m_screenOffsetX == 0.0 ) goto LABEL_8; goto LABEL_49; } LABEL_48: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xB1u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_timeOff = this->m_timeOff; v30[1] = 32; v30[0] = 0; v30[2] = 0; v30[3] = 0; v30[4] = -1; v31 = 0; fmt::BasicWriter::FormatDouble(&v56, v30, m_timeOff); if ( this->m_screenOffsetX == 0.0 ) { LABEL_8: if ( this->m_screenOffsetY == 0.0 ) goto LABEL_9; goto LABEL_50; } LABEL_49: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x122u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_screenOffsetX = this->m_screenOffsetX; v32[1] = 32; v32[0] = 0; v32[2] = 0; v32[3] = 0; v32[4] = -1; v33 = 0; fmt::BasicWriter::FormatDouble(&v56, v32, m_screenOffsetX); if ( this->m_screenOffsetY == 0.0 ) { LABEL_9: if ( this->m_waveWidth == 0.0 ) goto LABEL_10; goto LABEL_51; } LABEL_50: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x123u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_screenOffsetY = this->m_screenOffsetY; v34[1] = 32; v34[0] = 0; v34[2] = 0; v34[3] = 0; v34[4] = -1; v35 = 0; fmt::BasicWriter::FormatDouble(&v56, v34, m_screenOffsetY); if ( this->m_waveWidth == 0.0 ) { LABEL_10: if ( this->m_targetX == 0.0 ) goto LABEL_11; goto LABEL_52; } LABEL_51: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xB3u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_waveWidth = this->m_waveWidth; v36[1] = 32; v36[0] = 0; v36[2] = 0; v36[3] = 0; v36[4] = -1; v37 = 0; fmt::BasicWriter::FormatDouble(&v56, v36, m_waveWidth); if ( this->m_targetX == 0.0 ) { LABEL_11: if ( this->m_targetY == 0.0 ) goto LABEL_12; goto LABEL_53; } LABEL_52: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xB4u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_targetX = this->m_targetX; v38[1] = 32; v38[0] = 0; v38[2] = 0; v38[3] = 0; v38[4] = -1; v39 = 0; fmt::BasicWriter::FormatDouble(&v56, v38, m_targetX); if ( this->m_targetY == 0.0 ) { LABEL_12: if ( !this->m_flip ) goto LABEL_13; goto LABEL_54; } LABEL_53: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xBDu); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_targetY = this->m_targetY; v40[1] = 32; v40[0] = 0; v40[2] = 0; v40[3] = 0; v40[4] = -1; v41 = 0; fmt::BasicWriter::FormatDouble(&v56, v40, m_targetY); if ( !this->m_flip ) { LABEL_13: if ( this->m_fadeIn == 0.0 ) goto LABEL_14; goto LABEL_55; } LABEL_54: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xB9u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_flip); if ( this->m_fadeIn == 0.0 ) { LABEL_14: if ( this->m_fadeOut == 0.0 ) goto LABEL_15; goto LABEL_56; } LABEL_55: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xB5u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_fadeIn = this->m_fadeIn; v42[1] = 32; v42[0] = 0; v42[2] = 0; v42[3] = 0; v42[4] = -1; v43 = 0; fmt::BasicWriter::FormatDouble(&v56, v42, m_fadeIn); if ( this->m_fadeOut == 0.0 ) { LABEL_15: if ( !this->m_invert ) goto LABEL_16; goto LABEL_57; } LABEL_56: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xB6u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_fadeOut = this->m_fadeOut; v44[1] = 32; v44[0] = 0; v44[2] = 0; v44[3] = 0; v44[4] = -1; v45 = 0; fmt::BasicWriter::FormatDouble(&v56, v44, m_fadeOut); if ( !this->m_invert ) { LABEL_16: if ( !this->m_rotate ) goto LABEL_17; goto LABEL_58; } LABEL_57: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xB8u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_invert); if ( !this->m_rotate ) { LABEL_17: if ( !this->m_dual ) goto LABEL_18; goto LABEL_59; } LABEL_58: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xBAu); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_rotate); if ( !this->m_dual ) { LABEL_18: if ( !this->m_useX ) goto LABEL_19; goto LABEL_60; } LABEL_59: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xBBu); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_dual); if ( !this->m_useX ) { LABEL_19: if ( !this->m_useY ) goto LABEL_20; goto LABEL_61; } LABEL_60: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xBCu); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_useX); if ( !this->m_useY ) { LABEL_20: if ( !this->m_snapGrid ) goto LABEL_21; goto LABEL_62; } LABEL_61: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xBEu); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_useY); if ( !this->m_snapGrid ) { LABEL_21: if ( !this->m_hardEdges ) goto LABEL_22; goto LABEL_63; } LABEL_62: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xC2u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_snapGrid); if ( !this->m_hardEdges ) { LABEL_22: if ( !this->m_disableAll ) goto LABEL_23; goto LABEL_64; } LABEL_63: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x203u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_hardEdges); if ( !this->m_disableAll ) { LABEL_23: if ( this->m_inner == 0.0 ) goto LABEL_24; goto LABEL_65; } LABEL_64: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xC0u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_disableAll); if ( this->m_inner == 0.0 ) { LABEL_24: if ( this->m_maxSize == 0.0 ) goto LABEL_25; goto LABEL_66; } LABEL_65: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xB7u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_inner = this->m_inner; v46[1] = 32; v46[0] = 0; v46[2] = 0; v46[3] = 0; v46[4] = -1; v47 = 0; fmt::BasicWriter::FormatDouble(&v56, v46, m_inner); if ( this->m_maxSize == 0.0 ) { LABEL_25: if ( this->m_duration == 0.0 ) goto LABEL_26; goto LABEL_67; } LABEL_66: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x200u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_maxSize = this->m_maxSize; v48[1] = 32; v48[0] = 0; v48[2] = 0; v48[3] = 0; v48[4] = -1; v49 = 0; fmt::BasicWriter::FormatDouble(&v56, v48, m_maxSize); if ( this->m_duration == 0.0 ) { LABEL_26: if ( !this->m_easingType ) goto LABEL_27; goto LABEL_68; } LABEL_67: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xAu); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_duration = this->m_duration; v50[1] = 32; v50[0] = 0; v50[2] = 0; v50[3] = 0; v50[4] = -1; v51 = 0; fmt::BasicWriter::FormatDouble(&v56, v50, m_duration); if ( !this->m_easingType ) { LABEL_27: if ( this->m_easingRate == 0.0 ) goto LABEL_28; goto LABEL_69; } LABEL_68: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x1Eu); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_easingType); if ( this->m_easingRate == 0.0 ) { LABEL_28: if ( !this->m_targetGroupID ) goto LABEL_29; goto LABEL_70; } LABEL_69: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x55u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); m_easingRate = this->m_easingRate; v52[1] = 32; v52[0] = 0; v52[2] = 0; v52[3] = 0; v52[4] = -1; v53 = 0; fmt::BasicWriter::FormatDouble(&v56, v52, m_easingRate); if ( !this->m_targetGroupID ) { LABEL_29: if ( !this->m_centerGroupID ) goto LABEL_30; goto LABEL_71; } LABEL_70: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x33u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v56, this->m_targetGroupID); if ( !this->m_centerGroupID ) { LABEL_30: if ( !this->m_targetPlayer1 ) goto LABEL_31; goto LABEL_72; } LABEL_71: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x47u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v56, this->m_centerGroupID); if ( !this->m_targetPlayer1 ) { LABEL_31: if ( !this->m_targetPlayer2 ) goto LABEL_32; goto LABEL_73; } LABEL_72: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x8Au); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v56, this->m_targetPlayer1); if ( !this->m_targetPlayer2 ) { LABEL_32: if ( !this->m_followCPP ) goto LABEL_33; goto LABEL_74; } LABEL_73: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xC8u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v56, this->m_targetPlayer2); if ( !this->m_followCPP ) { LABEL_33: if ( !this->m_zLayerMin ) goto LABEL_34; goto LABEL_75; } LABEL_74: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xC9u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_followCPP); if ( !this->m_zLayerMin ) { LABEL_34: if ( !this->m_zLayerMax ) goto LABEL_35; goto LABEL_76; } LABEL_75: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xC4u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_zLayerMin); if ( !this->m_zLayerMax ) { LABEL_35: if ( this->m_maxSize == 0.0 ) goto LABEL_36; goto LABEL_77; } LABEL_76: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0xC5u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_zLayerMax); if ( this->m_maxSize == 0.0 ) { LABEL_36: if ( !this->m_animate ) goto LABEL_37; goto LABEL_78; } LABEL_77: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x200u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); v22 = this->m_maxSize; v54[1] = 32; v54[0] = 0; v54[2] = 0; v54[3] = 0; v54[4] = -1; v55 = 0; fmt::BasicWriter::FormatDouble(&v56, v54, v22); if ( !this->m_animate ) { LABEL_37: if ( !this->m_relative ) goto LABEL_38; LABEL_79: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x202u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_relative); if ( !this->m_editorDisabled ) goto LABEL_39; goto LABEL_80; } LABEL_78: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x201u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, this->m_animate); if ( this->m_relative ) goto LABEL_79; LABEL_38: if ( !this->m_editorDisabled ) goto LABEL_39; LABEL_80: fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v56, 0x213u); fmt::BasicWriter::operator<<(&v56, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v56, this->m_editorDisabled); LABEL_39: v5 = v56; if ( v57 < v56 + 1 ) fmt::internal::Array::grow(&v56, v56 + 1); v58[v5] = 0; sub_D153B8(a3, v58); if ( v58 != v59 && v58 ) operator delete[](v58); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source