// // GJBaseGameLayer::updateLayerCapacity from 0x1001deb84 to 0x1001df90c (3464 bytes) // // 1 xrefs: // > PlayLayer::setupHasCompleted @ 0x100116960 // // 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::updateLayerCapacity(GJBaseGameLayer *a1, const std::string *__s) { GJBaseGameLayer *v3; // x19 std::string::size_type v4; // x20 GJBaseGameLayer *v5; // x23 signed __int64 size; // x2 const std::string *v7; // x22 const std::string *v8; // x8 std::string::size_type v9; // x22 const std::string *v10; // x9 std::string::size_type v11; // x11 const std::string *v12; // x10 __int64 v13; // x8 __int64 v14; // x23 cocos2d::CCArray *v15; // x20 int v16; // w8 bool v17; // cc const std::string *v18; // x8 std::string::size_type v19; // x23 const std::string *v20; // x9 std::string::size_type v21; // x11 const std::string *v22; // x10 __int64 v23; // x8 __int64 v24; // x24 std::string::size_type v25; // x22 std::string *v26; // x1 __int64 v27; // x0 __int64 v28; // x25 bool v29; // zf int v30; // w8 std::string::size_type v31; // x11 bool v32; // cc const std::string *v33; // x8 _BYTE *v34; // x9 _BYTE *v35; // x10 std::string::size_type v36; // x11 __int64 v37; // x8 unsigned int v38; // w0 cocos2d::CCString *v39; // x0 int v40; // w21 cocos2d::CCString *v41; // x0 int v42; // w22 cocos2d::CCString *v43; // x0 int v44; // w23 cocos2d::CCString *v45; // x0 int v46; // w0 cocos2d::CCSpriteBatchNode *m_gameBlendingLayerT2; // x21 cocos2d::CCString *v48; // x0 int v49; // w0 cocos2d::CCSpriteBatchNode *m_gameLayerT1; // x21 cocos2d::CCString *v51; // x0 int v52; // w0 cocos2d::CCSpriteBatchNode *m_gameBlendingLayerT1; // x21 cocos2d::CCString *v54; // x0 int v55; // w0 cocos2d::CCSpriteBatchNode *m_game2LayerT1; // x21 cocos2d::CCString *v57; // x0 int v58; // w0 cocos2d::CCSpriteBatchNode *m_game2BlendingLayerT1; // x21 cocos2d::CCString *v60; // x0 int v61; // w0 cocos2d::CCSpriteBatchNode *m_gameBlendingLayerB0; // x21 cocos2d::CCString *v63; // x0 int v64; // w0 cocos2d::CCSpriteBatchNode *m_gameLayerB1; // x21 cocos2d::CCString *v66; // x0 int v67; // w0 cocos2d::CCSpriteBatchNode *m_gameBlendingLayerB1; // x21 cocos2d::CCString *v69; // x0 int v70; // w0 cocos2d::CCSpriteBatchNode *m_fireLayerB1; // x21 cocos2d::CCString *v72; // x0 int v73; // w0 cocos2d::CCSpriteBatchNode *m_fireBlendingLayerB1; // x21 cocos2d::CCString *v75; // x0 int v76; // w0 cocos2d::CCSpriteBatchNode *m_gameLayerB2; // x21 cocos2d::CCString *v78; // x0 int v79; // w0 cocos2d::CCSpriteBatchNode *m_gameBlendingLayerB2; // x21 cocos2d::CCString *v81; // x0 int v82; // w0 cocos2d::CCSpriteBatchNode *m_glowLayerT1; // x21 cocos2d::CCString *v84; // x0 int v85; // w0 cocos2d::CCSpriteBatchNode *m_glowLayerB1; // x21 cocos2d::CCString *v87; // x0 int v88; // w0 cocos2d::CCSpriteBatchNode *m_glowLayerB2; // x21 cocos2d::CCString *v90; // x0 int v91; // w0 cocos2d::CCSpriteBatchNode *m_gameLayerB4; // x21 cocos2d::CCString *v93; // x0 int v94; // w0 cocos2d::CCSpriteBatchNode *m_gameBlendingLayerB4; // x21 cocos2d::CCString *v96; // x0 int v97; // w0 cocos2d::CCSpriteBatchNode *m_glowLayerB4; // x21 cocos2d::CCString *v99; // x0 int v100; // w0 cocos2d::CCSpriteBatchNode *m_gameLayerB3; // x21 cocos2d::CCString *v102; // x0 int v103; // w0 cocos2d::CCSpriteBatchNode *m_gameBlendingLayerB3; // x21 cocos2d::CCString *v105; // x0 int v106; // w0 cocos2d::CCSpriteBatchNode *m_glowLayerB3; // x21 cocos2d::CCString *v108; // x0 int v109; // w0 cocos2d::CCSpriteBatchNode *m_gameLayerT2; // x21 cocos2d::CCString *v111; // x0 int v112; // w0 cocos2d::CCSpriteBatchNode *m_glowLayerT2; // x21 cocos2d::CCString *v114; // x0 int v115; // w0 cocos2d::CCSpriteBatchNode *m_gameLayerT3; // x21 cocos2d::CCString *v117; // x0 int v118; // w0 cocos2d::CCSpriteBatchNode *m_gameBlendingLayerT3; // x21 cocos2d::CCString *v120; // x0 int v121; // w0 cocos2d::CCSpriteBatchNode *m_glowLayerT3; // x21 cocos2d::CCString *v123; // x0 int v124; // w0 cocos2d::CCSpriteBatchNode *m_gameBlendingLayerT4; // x21 cocos2d::CCString *v126; // x0 int v127; // w0 cocos2d::CCSpriteBatchNode *m_fireLayerT3; // x21 cocos2d::CCString *v129; // x0 int v130; // w0 cocos2d::CCSpriteBatchNode *m_fireBlendingLayerT3; // x21 cocos2d::CCString *v132; // x0 int v133; // w0 cocos2d::CCSpriteBatchNode *m_fireLayerT2; // x21 cocos2d::CCString *v135; // x0 int v136; // w0 cocos2d::CCSpriteBatchNode *m_fireBlendingLayerT2; // x21 cocos2d::CCString *v138; // x0 int v139; // w0 cocos2d::CCSpriteBatchNode *m_fireLayerT1; // x21 cocos2d::CCString *v141; // x0 int v142; // w0 cocos2d::CCSpriteBatchNode *m_fireBlendingLayerT1; // x21 cocos2d::CCString *v144; // x0 int v145; // w0 cocos2d::CCSpriteBatchNode *m_fireLayerB2; // x21 cocos2d::CCString *v147; // x0 int v148; // w0 cocos2d::CCSpriteBatchNode *m_fireBlendingLayerB2; // x21 cocos2d::CCString *v150; // x0 int v151; // w0 cocos2d::CCSpriteBatchNode *m_fireLayerB3; // x21 cocos2d::CCString *v153; // x0 int v154; // w0 cocos2d::CCSpriteBatchNode *m_fireBlendingLayerB3; // x21 cocos2d::CCString *v156; // x0 int v157; // w0 cocos2d::CCSpriteBatchNode *m_fireLayerB4; // x21 cocos2d::CCString *v159; // x0 int v160; // w0 cocos2d::CCSpriteBatchNode *m_fireBlendingLayerB4; // x21 cocos2d::CCString *v162; // x0 int v163; // w0 cocos2d::CCSpriteBatchNode *m_textLayerT3; // x21 cocos2d::CCString *v165; // x0 int v166; // w0 cocos2d::CCSpriteBatchNode *m_textBlendingLayerT3; // x21 cocos2d::CCString *v168; // x0 int v169; // w0 cocos2d::CCSpriteBatchNode *m_textLayerT2; // x21 cocos2d::CCString *v171; // x0 int v172; // w0 cocos2d::CCSpriteBatchNode *m_textBlendingLayerT2; // x21 cocos2d::CCString *v174; // x0 int v175; // w0 cocos2d::CCSpriteBatchNode *m_textLayerT1; // x21 cocos2d::CCString *v177; // x0 int v178; // w0 cocos2d::CCSpriteBatchNode *m_textBlendingLayerT1; // x21 cocos2d::CCString *v180; // x0 int v181; // w0 cocos2d::CCSpriteBatchNode *m_textLayerB1; // x21 cocos2d::CCString *v183; // x0 int v184; // w0 cocos2d::CCSpriteBatchNode *m_textBlendingLayerB1; // x21 cocos2d::CCString *v186; // x0 int v187; // w0 cocos2d::CCSpriteBatchNode *m_textLayerB2; // x21 cocos2d::CCString *v189; // x0 int v190; // w0 cocos2d::CCSpriteBatchNode *m_textBlendingLayerB2; // x21 cocos2d::CCString *v192; // x0 int v193; // w0 cocos2d::CCSpriteBatchNode *m_textLayerB3; // x21 cocos2d::CCString *v195; // x0 int v196; // w0 cocos2d::CCSpriteBatchNode *m_textBlendingLayerB3; // x21 cocos2d::CCString *v198; // x0 int v199; // w0 cocos2d::CCSpriteBatchNode *m_textLayerB4; // x21 cocos2d::CCString *v201; // x0 int v202; // w0 cocos2d::CCSpriteBatchNode *m_textBlendingLayerB4; // x21 cocos2d::CCString *v204; // x0 int v205; // w0 cocos2d::CCSpriteBatchNode *m_fireBlendingLayerT4; // x19 cocos2d::CCString *v207; // x0 int v208; // w0 std::string::size_type v209; // x20 std::string::size_type v210; // x8 __int64 v211; // x24 int v212; // w8 std::string::size_type v213; // x11 bool v214; // cc const std::string *v215; // x8 _BYTE *v216; // x9 _BYTE *v217; // x10 std::string::size_type v218; // x11 __int64 v219; // x8 int v220; // w0 __int64 v221; // x27 __int64 v222; // x28 int v223; // w20 __int64 v224; // x23 unsigned __int64 v225; // x24 __int64 v226; // x19 const char *v227; // x0 __int64 v228; // x21 const char *v229; // x22 int v230; // w19 const char *v231; // x0 unsigned int v232; // w22 cocos2d::CCSpriteBatchNode *v233; // x0 GJBaseGameLayer *v234; // [xsp+8h] [xbp-A8h] std::allocator v235; // [xsp+17h] [xbp-99h] BYREF std::allocator __a[8]; // [xsp+20h] [xbp-90h] BYREF __int64 v237; // [xsp+28h] [xbp-88h] __int64 v238; // [xsp+30h] [xbp-80h] std::string v239; // [xsp+38h] [xbp-78h] BYREF v3 = a1; v4 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( (v4 & 0x8000000000000000LL) != 0 ) { size = __s->__r_.__value_.__l.__size_; if ( !size ) return; if ( size < 1 ) { LABEL_25: v15 = (cocos2d::CCArray *)sub_10024A15C(a1); v16 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); v17 = v16 < 0; if ( v16 >= 0 ) v18 = __s; else v18 = (const std::string *)__s->__r_.__value_.__r.__words[0]; if ( v17 ) v19 = __s->__r_.__value_.__l.__size_; else v19 = HIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v19 ) { v20 = (const std::string *)((char *)v18 + v19); v21 = v19; v22 = v18; do { if ( v22->__r_.__value_.__s.__data_[0] == 95 ) goto LABEL_36; v22 = (const std::string *)((char *)v22 + 1); --v21; } while ( v21 ); v22 = (const std::string *)((char *)v18 + v19); LABEL_36: v23 = (char *)v22 - (char *)v18; if ( v22 == v20 ) v24 = -1; else v24 = v23; } else { v24 = -1; } v25 = 0; while ( 1 ) { std::string::basic_string(&v239, __s, v25, v24 - v25, __a); if ( SHIBYTE(v239.__r_.__value_.__r.__words[2]) < 0 ) { if ( v25 != v19 || v239.__r_.__value_.__l.__size_ ) { v26 = (std::string *)v239.__r_.__value_.__r.__words[0]; LABEL_48: sub_100009900(__a, (char *)v26); v27 = sub_100268E48(__a); sub_10024A2D0(v15, v27); if ( SHIBYTE(v238) < 0 ) operator delete(*(void **)&__a[0].std::__non_trivial_if); } } else if ( v25 != v19 || *((_BYTE *)&v239.__r_.__value_.__s + 23) ) { v26 = &v239; goto LABEL_48; } if ( v24 == -1 ) goto LABEL_51; v25 = v24 + 1; v30 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); v31 = __s->__r_.__value_.__l.__size_; v32 = v30 < 0; if ( v30 >= 0 ) v33 = __s; else v33 = (const std::string *)__s->__r_.__value_.__r.__words[0]; if ( !v32 ) v31 = HIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v31 <= v25 ) { LABEL_51: v28 = -1; } else { v34 = (char *)v33 + v31; v35 = (char *)v33 + v25; v36 = ~v24 + v31; while ( *v35 != 95 ) { ++v35; if ( !--v36 ) { v35 = v34; break; } } v37 = v35 - (_BYTE *)v33; if ( v35 == v34 ) v28 = -1; else v28 = v37; } if ( SHIBYTE(v239.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v239.__r_.__value_.__l.__data_); v29 = v24 == -1; v24 = v28; if ( v29 ) { v38 = sub_10024A36C(v15); if ( v38 >= 4 ) { if ( (unsigned int)sub_10024A36C(v15) > 0xF ) { v3->m_increasedLayerCapacity = 1; m_gameBlendingLayerT2 = v3->m_gameBlendingLayerT2; v48 = cocos2d::CCArray::stringAtIndex(v15, 0); v49 = cocos2d::CCString::intValue(v48); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameBlendingLayerT2, (unsigned int)(float)((float)v49 * 1.1)); m_gameLayerT1 = v3->m_gameLayerT1; v51 = cocos2d::CCArray::stringAtIndex(v15, 1u); v52 = cocos2d::CCString::intValue(v51); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_gameLayerT1, (unsigned int)(float)((float)v52 * 1.1)); m_gameBlendingLayerT1 = v3->m_gameBlendingLayerT1; v54 = cocos2d::CCArray::stringAtIndex(v15, 2u); v55 = cocos2d::CCString::intValue(v54); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameBlendingLayerT1, (unsigned int)(float)((float)v55 * 1.1)); m_game2LayerT1 = v3->m_game2LayerT1; v57 = cocos2d::CCArray::stringAtIndex(v15, 3u); v58 = cocos2d::CCString::intValue(v57); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_game2LayerT1, (unsigned int)(float)((float)v58 * 1.1)); m_game2BlendingLayerT1 = v3->m_game2BlendingLayerT1; v60 = cocos2d::CCArray::stringAtIndex(v15, 4u); v61 = cocos2d::CCString::intValue(v60); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_game2BlendingLayerT1, (unsigned int)(float)((float)v61 * 1.1)); m_gameBlendingLayerB0 = v3->m_gameBlendingLayerB0; v63 = cocos2d::CCArray::stringAtIndex(v15, 5u); v64 = cocos2d::CCString::intValue(v63); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameBlendingLayerB0, (unsigned int)(float)((float)v64 * 1.1)); m_gameLayerB1 = v3->m_gameLayerB1; v66 = cocos2d::CCArray::stringAtIndex(v15, 6u); v67 = cocos2d::CCString::intValue(v66); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_gameLayerB1, (unsigned int)(float)((float)v67 * 1.1)); m_gameBlendingLayerB1 = v3->m_gameBlendingLayerB1; v69 = cocos2d::CCArray::stringAtIndex(v15, 7u); v70 = cocos2d::CCString::intValue(v69); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameBlendingLayerB1, (unsigned int)(float)((float)v70 * 1.1)); m_fireLayerB1 = v3->m_fireLayerB1; v72 = cocos2d::CCArray::stringAtIndex(v15, 8u); v73 = cocos2d::CCString::intValue(v72); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_fireLayerB1, (unsigned int)(float)((float)v73 * 1.1)); m_fireBlendingLayerB1 = v3->m_fireBlendingLayerB1; v75 = cocos2d::CCArray::stringAtIndex(v15, 9u); v76 = cocos2d::CCString::intValue(v75); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireBlendingLayerB1, (unsigned int)(float)((float)v76 * 1.1)); m_gameLayerB2 = v3->m_gameLayerB2; v78 = cocos2d::CCArray::stringAtIndex(v15, 0xAu); v79 = cocos2d::CCString::intValue(v78); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_gameLayerB2, (unsigned int)(float)((float)v79 * 1.1)); m_gameBlendingLayerB2 = v3->m_gameBlendingLayerB2; v81 = cocos2d::CCArray::stringAtIndex(v15, 0xBu); v82 = cocos2d::CCString::intValue(v81); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameBlendingLayerB2, (unsigned int)(float)((float)v82 * 1.1)); m_glowLayerT1 = v3->m_glowLayerT1; v84 = cocos2d::CCArray::stringAtIndex(v15, 0xCu); v85 = cocos2d::CCString::intValue(v84); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_glowLayerT1, (unsigned int)(float)((float)v85 * 1.1)); m_glowLayerB1 = v3->m_glowLayerB1; v87 = cocos2d::CCArray::stringAtIndex(v15, 0xEu); v88 = cocos2d::CCString::intValue(v87); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_glowLayerB1, (unsigned int)(float)((float)v88 * 1.1)); m_glowLayerB2 = v3->m_glowLayerB2; v90 = cocos2d::CCArray::stringAtIndex(v15, 0xFu); v91 = cocos2d::CCString::intValue(v90); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_glowLayerB2, (unsigned int)(float)((float)v91 * 1.1)); if ( (unsigned int)sub_10024A36C(v15) >= 0x37 ) { v3->m_increasedLayerCapacity = 0; m_gameLayerB4 = v3->m_gameLayerB4; v93 = cocos2d::CCArray::stringAtIndex(v15, 0x10u); v94 = cocos2d::CCString::intValue(v93); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameLayerB4, (unsigned int)(float)((float)v94 * 1.1)); m_gameBlendingLayerB4 = v3->m_gameBlendingLayerB4; v96 = cocos2d::CCArray::stringAtIndex(v15, 0x11u); v97 = cocos2d::CCString::intValue(v96); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameBlendingLayerB4, (unsigned int)(float)((float)v97 * 1.1)); m_glowLayerB4 = v3->m_glowLayerB4; v99 = cocos2d::CCArray::stringAtIndex(v15, 0x12u); v100 = cocos2d::CCString::intValue(v99); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_glowLayerB4, (unsigned int)(float)((float)v100 * 1.1)); m_gameLayerB3 = v3->m_gameLayerB3; v102 = cocos2d::CCArray::stringAtIndex(v15, 0x13u); v103 = cocos2d::CCString::intValue(v102); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameLayerB3, (unsigned int)(float)((float)v103 * 1.1)); m_gameBlendingLayerB3 = v3->m_gameBlendingLayerB3; v105 = cocos2d::CCArray::stringAtIndex(v15, 0x14u); v106 = cocos2d::CCString::intValue(v105); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameBlendingLayerB3, (unsigned int)(float)((float)v106 * 1.1)); m_glowLayerB3 = v3->m_glowLayerB3; v108 = cocos2d::CCArray::stringAtIndex(v15, 0x15u); v109 = cocos2d::CCString::intValue(v108); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_glowLayerB3, (unsigned int)(float)((float)v109 * 1.1)); m_gameLayerT2 = v3->m_gameLayerT2; v111 = cocos2d::CCArray::stringAtIndex(v15, 0x16u); v112 = cocos2d::CCString::intValue(v111); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameLayerT2, (unsigned int)(float)((float)v112 * 1.1)); m_glowLayerT2 = v3->m_glowLayerT2; v114 = cocos2d::CCArray::stringAtIndex(v15, 0x17u); v115 = cocos2d::CCString::intValue(v114); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_glowLayerT2, (unsigned int)(float)((float)v115 * 1.1)); m_gameLayerT3 = v3->m_gameLayerT3; v117 = cocos2d::CCArray::stringAtIndex(v15, 0x18u); v118 = cocos2d::CCString::intValue(v117); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameLayerT3, (unsigned int)(float)((float)v118 * 1.1)); m_gameBlendingLayerT3 = v3->m_gameBlendingLayerT3; v120 = cocos2d::CCArray::stringAtIndex(v15, 0x19u); v121 = cocos2d::CCString::intValue(v120); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameBlendingLayerT3, (unsigned int)(float)((float)v121 * 1.1)); m_glowLayerT3 = v3->m_glowLayerT3; v123 = cocos2d::CCArray::stringAtIndex(v15, 0x1Au); v124 = cocos2d::CCString::intValue(v123); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_glowLayerT3, (unsigned int)(float)((float)v124 * 1.1)); m_gameBlendingLayerT4 = v3->m_gameBlendingLayerT4; v126 = cocos2d::CCArray::stringAtIndex(v15, 0x1Bu); v127 = cocos2d::CCString::intValue(v126); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_gameBlendingLayerT4, (unsigned int)(float)((float)v127 * 1.1)); m_fireLayerT3 = v3->m_fireLayerT3; v129 = cocos2d::CCArray::stringAtIndex(v15, 0x1Cu); v130 = cocos2d::CCString::intValue(v129); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireLayerT3, (unsigned int)(float)((float)v130 * 1.1)); m_fireBlendingLayerT3 = v3->m_fireBlendingLayerT3; v132 = cocos2d::CCArray::stringAtIndex(v15, 0x1Du); v133 = cocos2d::CCString::intValue(v132); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireBlendingLayerT3, (unsigned int)(float)((float)v133 * 1.1)); m_fireLayerT2 = v3->m_fireLayerT2; v135 = cocos2d::CCArray::stringAtIndex(v15, 0x1Eu); v136 = cocos2d::CCString::intValue(v135); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireLayerT2, (unsigned int)(float)((float)v136 * 1.1)); m_fireBlendingLayerT2 = v3->m_fireBlendingLayerT2; v138 = cocos2d::CCArray::stringAtIndex(v15, 0x1Fu); v139 = cocos2d::CCString::intValue(v138); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireBlendingLayerT2, (unsigned int)(float)((float)v139 * 1.1)); m_fireLayerT1 = v3->m_fireLayerT1; v141 = cocos2d::CCArray::stringAtIndex(v15, 0x20u); v142 = cocos2d::CCString::intValue(v141); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireLayerT1, (unsigned int)(float)((float)v142 * 1.1)); m_fireBlendingLayerT1 = v3->m_fireBlendingLayerT1; v144 = cocos2d::CCArray::stringAtIndex(v15, 0x21u); v145 = cocos2d::CCString::intValue(v144); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireBlendingLayerT1, (unsigned int)(float)((float)v145 * 1.1)); m_fireLayerB2 = v3->m_fireLayerB2; v147 = cocos2d::CCArray::stringAtIndex(v15, 0x22u); v148 = cocos2d::CCString::intValue(v147); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireLayerB2, (unsigned int)(float)((float)v148 * 1.1)); m_fireBlendingLayerB2 = v3->m_fireBlendingLayerB2; v150 = cocos2d::CCArray::stringAtIndex(v15, 0x23u); v151 = cocos2d::CCString::intValue(v150); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireBlendingLayerB2, (unsigned int)(float)((float)v151 * 1.1)); m_fireLayerB3 = v3->m_fireLayerB3; v153 = cocos2d::CCArray::stringAtIndex(v15, 0x24u); v154 = cocos2d::CCString::intValue(v153); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireLayerB3, (unsigned int)(float)((float)v154 * 1.1)); m_fireBlendingLayerB3 = v3->m_fireBlendingLayerB3; v156 = cocos2d::CCArray::stringAtIndex(v15, 0x25u); v157 = cocos2d::CCString::intValue(v156); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireBlendingLayerB3, (unsigned int)(float)((float)v157 * 1.1)); m_fireLayerB4 = v3->m_fireLayerB4; v159 = cocos2d::CCArray::stringAtIndex(v15, 0x26u); v160 = cocos2d::CCString::intValue(v159); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireLayerB4, (unsigned int)(float)((float)v160 * 1.1)); m_fireBlendingLayerB4 = v3->m_fireBlendingLayerB4; v162 = cocos2d::CCArray::stringAtIndex(v15, 0x27u); v163 = cocos2d::CCString::intValue(v162); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireBlendingLayerB4, (unsigned int)(float)((float)v163 * 1.1)); m_textLayerT3 = v3->m_textLayerT3; v165 = cocos2d::CCArray::stringAtIndex(v15, 0x28u); v166 = cocos2d::CCString::intValue(v165); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textLayerT3, (unsigned int)(float)((float)v166 * 1.1)); m_textBlendingLayerT3 = v3->m_textBlendingLayerT3; v168 = cocos2d::CCArray::stringAtIndex(v15, 0x29u); v169 = cocos2d::CCString::intValue(v168); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textBlendingLayerT3, (unsigned int)(float)((float)v169 * 1.1)); m_textLayerT2 = v3->m_textLayerT2; v171 = cocos2d::CCArray::stringAtIndex(v15, 0x2Au); v172 = cocos2d::CCString::intValue(v171); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textLayerT2, (unsigned int)(float)((float)v172 * 1.1)); m_textBlendingLayerT2 = v3->m_textBlendingLayerT2; v174 = cocos2d::CCArray::stringAtIndex(v15, 0x2Bu); v175 = cocos2d::CCString::intValue(v174); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textBlendingLayerT2, (unsigned int)(float)((float)v175 * 1.1)); m_textLayerT1 = v3->m_textLayerT1; v177 = cocos2d::CCArray::stringAtIndex(v15, 0x2Cu); v178 = cocos2d::CCString::intValue(v177); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textLayerT1, (unsigned int)(float)((float)v178 * 1.1)); m_textBlendingLayerT1 = v3->m_textBlendingLayerT1; v180 = cocos2d::CCArray::stringAtIndex(v15, 0x2Du); v181 = cocos2d::CCString::intValue(v180); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textBlendingLayerT1, (unsigned int)(float)((float)v181 * 1.1)); m_textLayerB1 = v3->m_textLayerB1; v183 = cocos2d::CCArray::stringAtIndex(v15, 0x2Eu); v184 = cocos2d::CCString::intValue(v183); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textLayerB1, (unsigned int)(float)((float)v184 * 1.1)); m_textBlendingLayerB1 = v3->m_textBlendingLayerB1; v186 = cocos2d::CCArray::stringAtIndex(v15, 0x2Fu); v187 = cocos2d::CCString::intValue(v186); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textBlendingLayerB1, (unsigned int)(float)((float)v187 * 1.1)); m_textLayerB2 = v3->m_textLayerB2; v189 = cocos2d::CCArray::stringAtIndex(v15, 0x30u); v190 = cocos2d::CCString::intValue(v189); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textLayerB2, (unsigned int)(float)((float)v190 * 1.1)); m_textBlendingLayerB2 = v3->m_textBlendingLayerB2; v192 = cocos2d::CCArray::stringAtIndex(v15, 0x31u); v193 = cocos2d::CCString::intValue(v192); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textBlendingLayerB2, (unsigned int)(float)((float)v193 * 1.1)); m_textLayerB3 = v3->m_textLayerB3; v195 = cocos2d::CCArray::stringAtIndex(v15, 0x32u); v196 = cocos2d::CCString::intValue(v195); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textLayerB3, (unsigned int)(float)((float)v196 * 1.1)); m_textBlendingLayerB3 = v3->m_textBlendingLayerB3; v198 = cocos2d::CCArray::stringAtIndex(v15, 0x33u); v199 = cocos2d::CCString::intValue(v198); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textBlendingLayerB3, (unsigned int)(float)((float)v199 * 1.1)); m_textLayerB4 = v3->m_textLayerB4; v201 = cocos2d::CCArray::stringAtIndex(v15, 0x34u); v202 = cocos2d::CCString::intValue(v201); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textLayerB4, (unsigned int)(float)((float)v202 * 1.1)); m_textBlendingLayerB4 = v3->m_textBlendingLayerB4; v204 = cocos2d::CCArray::stringAtIndex(v15, 0x35u); v205 = cocos2d::CCString::intValue(v204); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_textBlendingLayerB4, (unsigned int)(float)((float)v205 * 1.1)); m_fireBlendingLayerT4 = v3->m_fireBlendingLayerT4; v207 = cocos2d::CCArray::stringAtIndex(v15, 0x36u); v208 = cocos2d::CCString::intValue(v207); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( m_fireBlendingLayerT4, (unsigned int)(float)((float)v208 * 1.1)); } } else if ( (unsigned int)sub_10024A36C(v15) >= 4 ) { v39 = cocos2d::CCArray::stringAtIndex(v15, 0); v40 = cocos2d::CCString::intValue(v39); v41 = cocos2d::CCArray::stringAtIndex(v15, 1u); v42 = cocos2d::CCString::intValue(v41); v43 = cocos2d::CCArray::stringAtIndex(v15, 2u); v44 = cocos2d::CCString::intValue(v43); v45 = cocos2d::CCArray::stringAtIndex(v15, 3u); v46 = cocos2d::CCString::intValue(v45); GJBaseGameLayer::updateLegacyLayerCapacity(v3, v40, v42, v44, v46); } } return; } } } v7 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v5 = (GJBaseGameLayer *)(__s->__r_.__value_.__r.__words[0] + size); } else { if ( !*((_BYTE *)&__s->__r_.__value_.__s + 23) ) return; v5 = (GJBaseGameLayer *)((char *)__s + v4); size = SHIBYTE(__s->__r_.__value_.__r.__words[2]); v7 = __s; } a1 = (GJBaseGameLayer *)v7; while ( 1 ) { a1 = (GJBaseGameLayer *)memchr(a1, 44, size); if ( !a1 ) goto LABEL_25; if ( LOBYTE(a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) == 44 ) break; a1 = (GJBaseGameLayer *)((char *)a1 + 1); size = (char *)v5 - (char *)a1; if ( (char *)v5 - (char *)a1 < 1 ) goto LABEL_25; } if ( a1 == v5 || (char *)a1 - (char *)v7 == -1 ) goto LABEL_25; *(_QWORD *)&__a[0].std::__non_trivial_if = 0; v237 = 0; v238 = 0; v8 = (const std::string *)__s->__r_.__value_.__r.__words[0]; if ( (v4 & 0x80000000) != 0LL ) { v9 = __s->__r_.__value_.__l.__size_; } else { v8 = __s; v9 = v4; } if ( v9 ) { v10 = (const std::string *)((char *)v8 + v9); v11 = v9; v12 = v8; while ( v12->__r_.__value_.__s.__data_[0] != 44 ) { v12 = (const std::string *)((char *)v12 + 1); if ( !--v11 ) { v12 = (const std::string *)((char *)v8 + v9); break; } } v13 = (char *)v12 - (char *)v8; if ( v12 == v10 ) v14 = -1; else v14 = v13; } else { v14 = -1; } v209 = 0; do { std::string::basic_string(&v239, __s, v209, v14 - v209, &v235); v210 = HIBYTE(v239.__r_.__value_.__r.__words[2]); if ( (v239.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v210 = v239.__r_.__value_.__l.__size_; if ( v209 != v9 || v210 ) sub_100017238((__int64)__a); if ( v14 == -1 ) goto LABEL_84; v209 = v14 + 1; v212 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); v213 = __s->__r_.__value_.__l.__size_; v214 = v212 < 0; if ( v212 >= 0 ) v215 = __s; else v215 = (const std::string *)__s->__r_.__value_.__r.__words[0]; if ( !v214 ) v213 = HIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v213 <= v209 ) { LABEL_84: v211 = -1; } else { v216 = (char *)v215 + v213; v217 = (char *)v215 + v209; v218 = ~v14 + v213; while ( *v217 != 44 ) { ++v217; if ( !--v218 ) { v217 = v216; break; } } v219 = v217 - (_BYTE *)v215; if ( v217 == v216 ) v211 = -1; else v211 = v219; } if ( SHIBYTE(v239.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v239.__r_.__value_.__l.__data_); v29 = v14 == -1; v14 = v211; } while ( !v29 ); v234 = v3; v220 = sub_10024A36C(v3->m_batchNodes); v222 = *(_QWORD *)&__a[0].std::__non_trivial_if; v221 = v237; if ( v237 - *(_QWORD *)&__a[0].std::__non_trivial_if != 24 ) { v223 = v220; v224 = 0; v225 = 0; do { v226 = v222 + v224; if ( *(char *)(v222 + v224 + 23) < 0 ) v227 = *(const char **)v226; else v227 = (const char *)(v222 + v224); v228 = atoi(v227); v229 = (const char *)(v226 + 24); v230 = *(char *)(v226 + 47); v231 = v229; if ( v230 < 0 ) v231 = *(const char **)v229; if ( (float)((float)atoi(v231) * 1.1) >= 10000.0 ) { v232 = 10000; } else { if ( v230 < 0 ) v229 = *(const char **)v229; v232 = (int)(float)((float)atoi(v229) * 1.1); } if ( (int)v228 < v223 ) { v233 = (cocos2d::CCSpriteBatchNode *)sub_10024A388(v234->m_batchNodes, v228); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v233, v232); v222 = *(_QWORD *)&__a[0].std::__non_trivial_if; v221 = v237; } v225 += 2LL; v224 += 48; } while ( -1 - 0x5555555555555555LL * ((v221 - v222) >> 3) > v225 ); } v239.__r_.__value_.__r.__words[0] = (std::string::size_type)__a; sub_1000177FC((void ***)&v239); }
GD Web Decomp Icon

GD Web Decomp

Raw Source