// // GJEffectManager::resetEffects from 0x5cc4cc to 0x5cc648 (380 bytes) // // 3 xrefs: // > LevelEditorLayer::onPlaytest @ 0x4683b4 // > GJBaseGameLayer::resetLevelVariables @ 0x5b974a // > GJEffectManager::reset @ 0x5cc6ca // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:53:57 +0000 // void __fastcall GJEffectManager::resetEffects(char ****this) { _DWORD *i; // r0 _DWORD *v3; // r5 _DWORD *v4; // r3 int v5; // r5 int v6; // r0 int v7; // r5 int v8; // r0 int v9; // r5 int v10; // r0 unsigned int v11; // r1 int v12; // r5 int v13; // r0 int v14; // r2 int v15; // r3 int v16; // r2 int v17; // r3 char *v18; // r5 GJEffectManager::removeAllPulseActions((GJEffectManager *)this); if ( *(this + 80) ) { for ( i = *(this + 79); i; i = v3 ) { v3 = (_DWORD *)*i; operator delete(i); } v4 = *(this + 78); *(this + 79) = nullptr; while ( i != v4 ) { (*(this + 77))[(_DWORD)i] = nullptr; i = (_DWORD *)((char *)i + 1); } *(this + 80) = nullptr; } v5 = (int)*(this + 82); while ( 1 ) { v6 = (int)*(this + 83); if ( v5 == v6 ) break; *(this + 83) = (char ***)(v6 - 44); std::__vector_base::~__vector_base((char **)(v6 - 12)); } v7 = (int)*(this + 93); while ( 1 ) { v8 = (int)*(this + 94); if ( v7 == v8 ) break; *(this + 94) = (char ***)(v8 - 32); std::__vector_base::~__vector_base((char **)(v8 - 12)); } v9 = (int)*(this + 90); while ( 1 ) { v10 = (int)*(this + 91); if ( v9 == v10 ) break; *(this + 91) = (char ***)(v10 - 44); std::__vector_base::~__vector_base((char **)(v10 - 12)); } GJEffectManager::resetToggledGroups((GJEffectManager *)this); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::clear(this + 115); GJEffectManager::transferPersistentItems(this, v11); *(this + 130) = nullptr; GJEffectManager::resetTriggeredIDs((GJEffectManager *)this); v12 = (int)*(this + 168); while ( 1 ) { v13 = (int)*(this + 169); if ( v12 == v13 ) break; *(this + 169) = (char ***)(v13 - 56); std::__vector_base::~__vector_base((char **)(v13 - 12)); } std::__hash_table,std::equal_to,std::allocator>::clear(this + 163); if ( *(this + 88) ) { sub_5CC190(*(this + 87)); v14 = (int)*(this + 86); v15 = 0; *(this + 87) = nullptr; while ( v15 != v14 ) (*(this + 85))[v15++] = nullptr; *(this + 88) = nullptr; } if ( *(this + 149) ) { sub_5CC4B0(*(this + 148)); v16 = (int)*(this + 147); v17 = 0; *(this + 148) = nullptr; while ( v17 != v16 ) (*(this + 146))[v17++] = nullptr; *(this + 149) = nullptr; } v18 = (char *)*(this + 143); while ( v18 ) { if ( std::__hash_table,std::equal_to,std::allocator>::find( this + 125, (unsigned int *)v18 + 2) ) { v18 = *(char **)v18; } else { v18 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::erase( this + 141, (char **)v18); } } *(this + 229) = nullptr; *(this + 230) = nullptr; *(this + 231) = nullptr; *(this + 232) = nullptr; *(this + 233) = nullptr; *(this + 234) = nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source