// // GJBaseGameLayer::restoreRemap from 0x1001ed668 to 0x1001edb9c (1332 bytes) // // 1 xrefs: // > GJBaseGameLayer::spawnObject @ 0x1001ec51c // // 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 // void __fastcall GJBaseGameLayer::restoreRemap( GJBaseGameLayer *a1, EffectGameObject *a2, std::unordered_map *a3) { __int64 *v5; // x0 __int64 *v6; // x0 __int64 *v7; // x0 __int64 *v8; // x0 __int64 *v9; // x0 __int64 *v10; // x0 int m_objectID; // w8 __int64 *v12; // x0 __int64 *v13; // x0 __int64 *v14; // x0 __int64 *v15; // x0 __int64 *v16; // x0 __int64 *v17; // x0 __int64 *v18; // x0 __int64 *v19; // x0 __int64 *v20; // x0 __int64 *v21; // x0 __int64 *v22; // x0 __int64 *v23; // x0 __int64 *v24; // x0 __int64 *v25; // x0 __int64 *v26; // x0 __int64 *v27; // x0 __int64 *v28; // x0 __int64 *v29; // x0 __int64 *v30; // x0 __int64 *v31; // x0 __int64 *v32; // x0 __int64 *v33; // x0 __int64 *v34; // x0 __int64 *v35; // x0 __int64 *v36; // x0 __int64 *v37; // x0 __int64 *v38; // x0 __int64 *v39; // x0 int v40; // [xsp+Ch] [xbp-14h] BYREF v40 = 51; v5 = sub_100018814(a3, &v40); if ( v5 ) a2->m_targetGroupID = *((_DWORD *)v5 + 5); v40 = 71; v6 = sub_100018814(a3, &v40); if ( v6 ) a2->m_centerGroupID = *((_DWORD *)v6 + 5); v40 = 80; v7 = sub_100018814(a3, &v40); if ( v7 ) a2->m_itemID = *((_DWORD *)v7 + 5); v40 = 95; v8 = sub_100018814(a3, &v40); if ( v8 ) a2->m_itemID2 = *((_DWORD *)v8 + 5); v40 = 534; v9 = sub_100018814(a3, &v40); if ( v9 ) a2->m_controlID = *((_DWORD *)v9 + 5); v40 = 76; v10 = sub_100018814(a3, &v40); if ( v10 ) a2->m_animationID = *((_DWORD *)v10 + 5); m_objectID = a2->m_objectID; if ( m_objectID > 3601 ) { if ( m_objectID > 3604 ) { if ( (unsigned int)(m_objectID - 3660) < 2 ) { LABEL_67: v40 = 366; v32 = sub_100018814(a3, &v40); if ( v32 ) LODWORD(a2[1].m_pUserData) = *((_DWORD *)v32 + 5); v40 = 560; v33 = sub_100018814(a3, &v40); if ( v33 ) a2[1].m_nLuaID = *((_DWORD *)v33 + 5); v40 = 565; v34 = sub_100018814(a3, &v40); if ( v34 ) a2[1].m_uAutoReleaseCount = *((_DWORD *)v34 + 5); return; } if ( m_objectID != 3605 ) { if ( m_objectID != 3607 ) return; goto LABEL_85; } goto LABEL_31; } if ( (unsigned int)(m_objectID - 3602) >= 2 ) { v40 = 447; v30 = sub_100018814(a3, &v40); if ( v30 ) a2[1].m_eObjType = *((_DWORD *)v30 + 5); v40 = 525; v31 = sub_100018814(a3, &v40); if ( v31 ) a2[1].m_uIndexInArray = *((_DWORD *)v31 + 5); } else { v40 = 392; v20 = sub_100018814(a3, &v40); if ( v20 ) a2[1].m_uAutoReleaseCount = *((_DWORD *)v20 + 5); v40 = 455; v21 = sub_100018814(a3, &v40); if ( v21 ) a2[1].m_obContentSize.width = *((float *)v21 + 5); v40 = 457; v22 = sub_100018814(a3, &v40); if ( v22 ) a2[1].m_sAdditionalTransform.a = *((float *)v22 + 5); v40 = 416; v23 = sub_100018814(a3, &v40); if ( v23 ) a2[1].m_fScaleY = *((float *)v23 + 5); } } else { if ( m_objectID > 2067 ) { if ( (unsigned int)(m_objectID - 3006) <= 0x11 ) { if ( ((1 << (m_objectID + 66)) & 0x2F81F) != 0 ) { v40 = 225; v12 = sub_100018814(a3, &v40); if ( v12 ) a2[1].m_sTransform.c = *((float *)v12 + 5); v40 = 344; v13 = sub_100018814(a3, &v40); if ( v13 ) *((_DWORD *)&a2[1].m_sInverse + 6) = *((_DWORD *)v13 + 5); v40 = 343; v14 = sub_100018814(a3, &v40); if ( v14 ) a2->m_enterChannel = *((_DWORD *)v14 + 5); return; } if ( m_objectID == 3016 ) goto LABEL_67; } if ( m_objectID != 2068 ) { if ( m_objectID == 2903 ) { v40 = 203; v35 = sub_100018814(a3, &v40); if ( v35 ) a2[1].m_uID = *((_DWORD *)v35 + 5); v40 = 204; v36 = sub_100018814(a3, &v40); if ( v36 ) a2[1].m_nLuaID = *((_DWORD *)v36 + 5); v40 = 205; v37 = sub_100018814(a3, &v40); if ( v37 ) a2[1].m_nTag = *((_DWORD *)v37 + 5); v40 = 206; v38 = sub_100018814(a3, &v40); if ( v38 ) a2[1].m_uReference = *((_DWORD *)v38 + 5); v40 = 209; v39 = sub_100018814(a3, &v40); if ( v39 ) HIDWORD(a2[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = *((_DWORD *)v39 + 5); } return; } LABEL_85: ChanceTriggerGameObject::revertChanceRemap((ChanceTriggerGameObject *)a2); return; } switch ( m_objectID ) { case 901: v40 = 395; v24 = sub_100018814(a3, &v40); if ( v24 ) a2->m_targetModCenterID = *((_DWORD *)v24 + 5); break; case 1346: v40 = 401; v25 = sub_100018814(a3, &v40); if ( v25 ) a2->m_rotationTargetID = *((_DWORD *)v25 + 5); v40 = 516; v26 = sub_100018814(a3, &v40); if ( v26 ) *(_DWORD *)(&a2->m_canSpawnTriggers + 1) = *((_DWORD *)v26 + 5); v40 = 517; v27 = sub_100018814(a3, &v40); if ( v27 ) LODWORD(a2[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = *((_DWORD *)v27 + 5); v40 = 518; v28 = sub_100018814(a3, &v40); if ( v28 ) HIDWORD(a2[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = *((_DWORD *)v28 + 5); v40 = 519; v29 = sub_100018814(a3, &v40); if ( v29 ) a2[1].m_uID = *((_DWORD *)v29 + 5); break; case 1934: LABEL_31: v40 = 392; v15 = sub_100018814(a3, &v40); if ( v15 ) a2[1].m_uAutoReleaseCount = *((_DWORD *)v15 + 5); v40 = 455; v16 = sub_100018814(a3, &v40); if ( v16 ) a2[1].m_obContentSize.width = *((float *)v16 + 5); v40 = 457; v17 = sub_100018814(a3, &v40); if ( v17 ) a2[1].m_sAdditionalTransform.a = *((float *)v17 + 5); v40 = 416; v18 = sub_100018814(a3, &v40); if ( v18 ) a2[1].m_fScaleY = *((float *)v18 + 5); v40 = 432; v19 = sub_100018814(a3, &v40); if ( v19 ) a2[1].m_sTransform.tx = *((float *)v19 + 5); return; default: return; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source