// // cocos2d::CCParticleSystem::initWithDictionary from 0x7e48b8 to 0x7e552e (3190 bytes) // // 2 xrefs: // > cocos2d::CCParticleSystem::initWithDictionary @ 0x7e560e // > cocos2d::CCParticleSystem::initWithFile @ 0x7e574c // // 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 12:00:53 +0000 // int __fastcall cocos2d::CCParticleSystem::initWithDictionary( cocos2d::CCParticleSystem *this, cocos2d::CCDictionary *a2, const char *a3, int a4) { int v8; // r2 int v9; // r3 cocos2d::CCString *v10; // r0 int v11; // r11 int v12; // r2 int v13; // r3 cocos2d::CCString *v14; // r0 int v15; // r2 int v16; // r3 cocos2d::CCString *v17; // r0 int v18; // r2 int v19; // r3 cocos2d::CCString *v20; // r0 int v21; // r2 int v22; // r3 cocos2d::CCString *v23; // r0 int v24; // r2 int v25; // r3 cocos2d::CCString *v26; // r0 int v27; // r2 int v28; // r3 cocos2d::CCString *v29; // r0 int v30; // r2 int v31; // r3 cocos2d::CCString *v32; // r0 int v33; // r2 int v34; // r3 cocos2d::CCString *v35; // r0 int v36; // r2 int v37; // r3 cocos2d::CCString *v38; // r0 int v39; // r2 int v40; // r3 cocos2d::CCString *v41; // r0 int v42; // r2 int v43; // r3 cocos2d::CCString *v44; // r0 int v45; // r2 int v46; // r3 cocos2d::CCString *v47; // r0 int v48; // r2 int v49; // r3 cocos2d::CCString *v50; // r0 int v51; // r2 int v52; // r3 cocos2d::CCString *v53; // r0 int v54; // r2 int v55; // r3 cocos2d::CCString *v56; // r0 int v57; // r2 int v58; // r3 cocos2d::CCString *v59; // r0 int v60; // r2 int v61; // r3 cocos2d::CCString *v62; // r0 int v63; // r2 int v64; // r3 cocos2d::CCString *v65; // r0 int v66; // r2 int v67; // r3 cocos2d::CCString *v68; // r0 int v69; // r2 int v70; // r3 cocos2d::CCString *v71; // r0 int v72; // r2 int v73; // r3 cocos2d::CCString *v74; // r0 int v75; // r2 int v76; // r3 cocos2d::CCString *v77; // r0 int v78; // r2 int v79; // r3 cocos2d::CCString *v80; // r0 int v81; // r2 int v82; // r3 cocos2d::CCString *v83; // r0 int v84; // r2 int v85; // r3 cocos2d::CCString *v86; // r0 int v87; // r2 int v88; // r3 cocos2d::CCString *v89; // r0 int v90; // r11 int v91; // r2 int v92; // r3 cocos2d::CCString *v93; // r0 int v94; // r2 int v95; // r3 cocos2d::CCString *v96; // r0 int v97; // r2 int v98; // r3 cocos2d::CCString *v99; // r0 int v100; // r2 int v101; // r3 cocos2d::CCString *v102; // r0 int v103; // r2 int v104; // r3 cocos2d::CCString *v105; // r0 int v106; // r2 int v107; // r3 cocos2d::CCString *v108; // r0 int v109; // r2 int v110; // r3 cocos2d::CCString *v111; // r0 int v112; // r2 int v113; // r3 cocos2d::CCString *v114; // r0 int v115; // r8 int v116; // r2 int v117; // r3 cocos2d::CCString *v118; // r0 int v119; // r2 int v120; // r3 cocos2d::CCString *v121; // r0 int v122; // r2 int v123; // r3 cocos2d::CCString *v124; // r0 int v125; // r2 int v126; // r3 cocos2d::CCString *v127; // r0 int v128; // r2 int v129; // r3 cocos2d::CCString *v130; // r0 int v131; // r2 int v132; // r3 cocos2d::CCString *v133; // r0 int v134; // r2 int v135; // r3 cocos2d::CCString *v136; // r0 int v137; // r2 int v138; // r3 cocos2d::CCString *v139; // r0 int v140; // r2 int v141; // r3 cocos2d::CCString *v142; // r0 int v143; // r2 int v144; // r3 cocos2d::CCString *v145; // r0 int v146; // r2 int v147; // r3 cocos2d::CCString *v148; // r0 int v149; // r2 int v150; // r3 cocos2d::CCString *v151; // r0 int v152; // r2 int v153; // r3 cocos2d::CCString *v154; // r0 int v155; // r2 int v156; // r3 cocos2d::CCString *v157; // r0 int v158; // r2 int v159; // r3 cocos2d::CCString *v160; // r0 int v161; // r2 int v162; // r3 cocos2d::CCString *v163; // r0 int v164; // r2 int v165; // r3 cocos2d::CCString *v166; // r0 char *CString; // r0 char *v168; // r8 size_t v169; // r0 cocos2d::CCFileUtils *v170; // r0 unsigned int v171; // r8 size_t v172; // r0 size_t v173; // r2 char *v174; // r0 int v175; // r0 size_t v176; // r1 char *v177; // r2 size_t v178; // r0 char *v179; // r1 size_t v180; // r2 int *v181; // r3 int v182; // r1 int v183; // r2 int v184; // r0 size_t v185; // r1 char *v186; // r2 int *v187; // r0 size_t v188; // r0 char *v189; // r1 size_t v190; // r2 int *v191; // r3 int v192; // r1 int v193; // r2 int v194; // r0 size_t v195; // r1 char *v196; // r2 int v197; // r3 int v198; // r0 cocos2d::CCFileUtils *v199; // r9 int v200; // r0 cocos2d::CCTextureCache *v201; // r0 cocos2d::CCTextureCache *v202; // r0 const char *v203; // r1 cocos2d::CCFileUtils *v204; // r8 int v205; // r0 int v206; // r2 int v207; // r3 cocos2d::CCString *v208; // r0 char *v209; // r7 size_t v210; // r1 unsigned __int8 *v211; // r1 unsigned __int8 **v212; // r3 int v213; // r7 cocos2d::CCImage *v214; // r4 cocos2d::CCTextureCache *v215; // r0 void (__fastcall *v216)(cocos2d::CCParticleSystem *, int); // r7 cocos2d::CCTextureCache *v217; // r0 char *v218; // r2 int v219; // r0 int v220; // r4 int *v222; // [sp+0h] [bp-64h] void (__fastcall *v223)(cocos2d::CCParticleSystem *, float *); // [sp+10h] [bp-54h] int v224; // [sp+14h] [bp-50h] cocos2d::ZipUtils *v225; // [sp+1Ch] [bp-48h] BYREF void *v226; // [sp+20h] [bp-44h] BYREF float v227[2]; // [sp+24h] [bp-40h] BYREF int v228; // [sp+2Ch] [bp-38h] BYREF size_t v229; // [sp+30h] [bp-34h] char *v230; // [sp+34h] [bp-30h] int v231[3]; // [sp+38h] [bp-2Ch] BYREF int v232; // [sp+44h] [bp-20h] BYREF int v233; // [sp+48h] [bp-1Ch] int v234; // [sp+4Ch] [bp-18h] int v235; // [sp+50h] [bp-14h] BYREF int v236; // [sp+54h] [bp-10h] char *v237; // [sp+58h] [bp-Ch] v225 = nullptr; v226 = nullptr; v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "maxParticles", 0xCu); v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v8, v9); v11 = cocos2d::CCString::intValue(v10); std::string::~string((int)&v235); if ( !(*(int (__fastcall **)(cocos2d::CCParticleSystem *, int, int))(*(_DWORD *)this + 804))(this, v11, a4) ) goto LABEL_53; v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "angle", 5u); v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v12, v13); *((_DWORD *)this + 102) = cocos2d::CCString::floatValue(v14); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "angleVariance", 0xDu); v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v15, v16); *((_DWORD *)this + 103) = cocos2d::CCString::floatValue(v17); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "duration", 8u); v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v18, v19); *((_DWORD *)this + 95) = cocos2d::CCString::floatValue(v20); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "blendFuncSource", 0xFu); v23 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v21, v22); *((_DWORD *)this + 147) = cocos2d::CCString::intValue(v23); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "blendFuncDestination", 0x14u); v26 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v24, v25); *((_DWORD *)this + 148) = cocos2d::CCString::intValue(v26); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "startColorRed", 0xDu); v29 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v27, v28); *((_DWORD *)this + 124) = cocos2d::CCString::floatValue(v29); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "startColorGreen", 0xFu); v32 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v30, v31); *((_DWORD *)this + 125) = cocos2d::CCString::floatValue(v32); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "startColorBlue", 0xEu); v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v33, v34); *((_DWORD *)this + 126) = cocos2d::CCString::floatValue(v35); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "startColorAlpha", 0xFu); v38 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v36, v37); *((_DWORD *)this + 127) = cocos2d::CCString::floatValue(v38); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "startColorVarianceRed", 0x15u); v41 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v39, v40); *((_DWORD *)this + 128) = cocos2d::CCString::floatValue(v41); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "startColorVarianceGreen", 0x17u); v44 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v42, v43); *((_DWORD *)this + 129) = cocos2d::CCString::floatValue(v44); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "startColorVarianceBlue", 0x16u); v47 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v45, v46); *((_DWORD *)this + 130) = cocos2d::CCString::floatValue(v47); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "startColorVarianceAlpha", 0x17u); v50 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v48, v49); *((_DWORD *)this + 131) = cocos2d::CCString::floatValue(v50); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "finishColorRed", 0xEu); v53 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v51, v52); *((_DWORD *)this + 132) = cocos2d::CCString::floatValue(v53); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "finishColorGreen", 0x10u); v56 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v54, v55); *((_DWORD *)this + 133) = cocos2d::CCString::floatValue(v56); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "finishColorBlue", 0xFu); v59 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v57, v58); *((_DWORD *)this + 134) = cocos2d::CCString::floatValue(v59); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "finishColorAlpha", 0x10u); v62 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v60, v61); *((_DWORD *)this + 135) = cocos2d::CCString::floatValue(v62); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "finishColorVarianceRed", 0x16u); v65 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v63, v64); *((_DWORD *)this + 136) = cocos2d::CCString::floatValue(v65); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "finishColorVarianceGreen", 0x18u); v68 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v66, v67); *((_DWORD *)this + 137) = cocos2d::CCString::floatValue(v68); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "finishColorVarianceBlue", 0x17u); v71 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v69, v70); *((_DWORD *)this + 138) = cocos2d::CCString::floatValue(v71); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "finishColorVarianceAlpha", 0x18u); v74 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v72, v73); *((_DWORD *)this + 139) = cocos2d::CCString::floatValue(v74); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "startParticleSize", 0x11u); v77 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v75, v76); *((_DWORD *)this + 120) = cocos2d::CCString::floatValue(v77); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "startParticleSizeVariance", 0x19u); v80 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v78, v79); *((_DWORD *)this + 121) = cocos2d::CCString::floatValue(v80); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "finishParticleSize", 0x12u); v83 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v81, v82); *((_DWORD *)this + 122) = cocos2d::CCString::floatValue(v83); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "finishParticleSizeVariance", 0x1Au); v86 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v84, v85); *((_DWORD *)this + 123) = cocos2d::CCString::floatValue(v86); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "sourcePositionx", 0xFu); v89 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v87, v88); v90 = cocos2d::CCString::floatValue(v89); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "sourcePositiony", 0xFu); v93 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v91, v92); v224 = cocos2d::CCString::floatValue(v93); std::string::~string((int)&v235); v223 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)this + 92); cocos2d::CCPoint::CCPoint(v227, *(float *)&v90, *(float *)&v224); v223(this, v227); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "sourcePositionVariancex", 0x17u); v96 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v94, v95); *((_DWORD *)this + 98) = cocos2d::CCString::floatValue(v96); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "sourcePositionVariancey", 0x17u); v99 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v97, v98); *((_DWORD *)this + 99) = cocos2d::CCString::floatValue(v99); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "rotationStart", 0xDu); v102 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v100, v101); *((_DWORD *)this + 140) = cocos2d::CCString::floatValue(v102); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "rotationStartVariance", 0x15u); v105 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v103, v104); *((_DWORD *)this + 141) = cocos2d::CCString::floatValue(v105); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "rotationEnd", 0xBu); v108 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v106, v107); *((_DWORD *)this + 142) = cocos2d::CCString::floatValue(v108); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "rotationEndVariance", 0x13u); v111 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v109, v110); *((_DWORD *)this + 143) = cocos2d::CCString::floatValue(v111); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "emitterType", 0xBu); v114 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v112, v113); *((_DWORD *)this + 152) = cocos2d::CCString::intValue(v114); std::string::~string((int)&v235); v115 = *((_DWORD *)this + 152); if ( v115 ) { if ( v115 != 1 ) goto LABEL_53; v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "maxRadius", 9u); v145 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v143, v144); *((_DWORD *)this + 80) = cocos2d::CCString::floatValue(v145); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "maxRadiusVariance", 0x11u); v148 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v146, v147); *((_DWORD *)this + 81) = cocos2d::CCString::floatValue(v148); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "minRadius", 9u); v151 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v149, v150); *((_DWORD *)this + 82) = cocos2d::CCString::floatValue(v151); std::string::~string((int)&v235); *((_DWORD *)this + 83) = 0; v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "rotatePerSecond", 0xFu); v154 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v152, v153); *((_DWORD *)this + 84) = cocos2d::CCString::floatValue(v154); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "rotatePerSecondVariance", 0x17u); v157 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v155, v156); *((_DWORD *)this + 85) = cocos2d::CCString::floatValue(v157); } else { v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "gravityx", 8u); v118 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v116, v117); *((_DWORD *)this + 71) = cocos2d::CCString::floatValue(v118); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "gravityy", 8u); v121 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v119, v120); *((_DWORD *)this + 72) = cocos2d::CCString::floatValue(v121); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "speed", 5u); v124 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v122, v123); *((_DWORD *)this + 73) = cocos2d::CCString::floatValue(v124); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "speedVariance", 0xDu); v127 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v125, v126); *((_DWORD *)this + 74) = cocos2d::CCString::floatValue(v127); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "radialAcceleration", 0x12u); v130 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v128, v129); *((_DWORD *)this + 77) = cocos2d::CCString::floatValue(v130); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "radialAccelVariance", 0x13u); v133 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v131, v132); *((_DWORD *)this + 78) = cocos2d::CCString::floatValue(v133); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "tangentialAcceleration", 0x16u); v136 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v134, v135); *((_DWORD *)this + 75) = cocos2d::CCString::floatValue(v136); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "tangentialAccelVariance", 0x17u); v139 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v137, v138); *((_DWORD *)this + 76) = cocos2d::CCString::floatValue(v139); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "rotationIsDir", 0xDu); v142 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v140, v141); *((_BYTE *)this + 316) = cocos2d::CCString::boolValue(v142); } std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "particleLifespan", 0x10u); v160 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v158, v159); *((_DWORD *)this + 100) = cocos2d::CCString::floatValue(v160); std::string::~string((int)&v235); v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "particleLifespanVariance", 0x18u); v163 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v161, v162); *((_DWORD *)this + 101) = cocos2d::CCString::floatValue(v163); std::string::~string((int)&v235); (*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_DWORD *)this + 516))(this); cocos2d::CCParticleSystem::saveDefaults(this); if ( !*((_DWORD *)this + 89) ) { *((_BYTE *)this + 596) = 0; v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "textureFileName", 0xFu); v166 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v164, v165); CString = cocos2d::CCString::getCString(v166); v228 = 0; v229 = 0; v230 = nullptr; v168 = CString; v169 = strlen(CString); std::string::__init(&v228, v168, v169); std::string::~string((int)&v235); v170 = (cocos2d::CCFileUtils *)std::string::rfind((unsigned __int8 *)&v228, 47, 0xFFFFFFFF); if ( v170 == (cocos2d::CCFileUtils *)-1 ) { if ( !a3 ) { LABEL_34: if ( (v228 & 1) != 0 ) v197 = v229; else v197 = (int)(unsigned __int8)v228 >> 1; if ( v197 ) { v198 = cocos2d::CCFileUtils::sharedFileUtils(v170); v199 = (cocos2d::CCFileUtils *)(*(int (__fastcall **)(int))(*(_DWORD *)v198 + 92))(v198); v200 = cocos2d::CCFileUtils::sharedFileUtils(v199); v201 = (cocos2d::CCTextureCache *)(*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v200 + 88))(v200, 0); v202 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v201); v203 = (v228 & 1) != 0 ? v230 : (char *)&v228 + 1; v204 = (cocos2d::CCFileUtils *)cocos2d::CCTextureCache::addImage(v202, v203, 0); v205 = cocos2d::CCFileUtils::sharedFileUtils(v204); (*(void (__fastcall **)(int, cocos2d::CCFileUtils *))(*(_DWORD *)v205 + 88))(v205, v199); if ( v204 ) { (*(void (__fastcall **)(cocos2d::CCParticleSystem *, cocos2d::CCFileUtils *))(*(_DWORD *)this + 760))( this, v204); LABEL_51: std::string::~string((int)&v228); goto LABEL_54; } } v235 = 0; v236 = 0; v237 = nullptr; std::string::__init(&v235, "textureImageData", 0x10u); v208 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey((int)a2, (int)&v235, v206, v207); v209 = cocos2d::CCString::getCString(v208); std::string::~string((int)&v235); v210 = strlen(v209); if ( !v210 ) goto LABEL_51; v211 = (unsigned __int8 *)base64Decode(v209, v210, &v225, 0, v222); if ( v225 ) { v213 = cocos2d::ZipUtils::ccInflateMemory(v225, v211, (unsigned int)&v226, v212); if ( v226 ) { v214 = (cocos2d::CCImage *)operator new(0x48u); cocos2d::CCImage::CCImage(v214); v215 = (cocos2d::CCTextureCache *)cocos2d::CCImage::initWithImageData(v214, v226, v213, 5, 0, 0, 8); if ( v215 ) { v216 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)this + 760); v217 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v215); if ( (v228 & 1) != 0 ) v218 = v230; else v218 = (char *)&v228 + 1; v219 = cocos2d::CCTextureCache::addUIImage(v217, v214, v218); v216(this, v219); cocos2d::CCObject::release(v214); goto LABEL_51; } } } std::string::~string((int)&v228); LABEL_53: v220 = 0; goto LABEL_55; } v232 = 0; v233 = 0; v234 = 0; v188 = strlen(a3); std::string::__init(&v232, a3, v188); if ( (v228 & 1) != 0 ) { v189 = v230; v190 = v229; } else { v190 = (int)(unsigned __int8)v228 >> 1; v189 = (char *)&v228 + 1; } v191 = std::string::append(&v232, v189, v190); v192 = v191[1]; v193 = v191[2]; v235 = *v191; v236 = v192; v237 = (char *)v193; *v191 = 0; v191[1] = 0; v191[2] = 0; if ( (v228 & 1) != 0 ) { *v230 = 0; v229 = 0; } else { LOWORD(v228) = 0; } std::string::reserve(&v228, 0); v194 = v235; v195 = v236; v196 = v237; v235 = 0; v236 = 0; v237 = nullptr; v228 = v194; v229 = v195; v230 = v196; std::string::~string((int)&v235); v187 = &v232; LABEL_33: v170 = (cocos2d::CCFileUtils *)std::string::~string((int)v187); goto LABEL_34; } v171 = (unsigned int)v170 + 1; v222 = &v228; std::string::basic_string(v231, (unsigned __int8 *)&v228, 0, (size_t)v170 + 1); if ( a3 ) { v172 = strlen(a3); v173 = v172; if ( (v231[0] & 1) != 0 ) { if ( v172 != v231[1] ) goto LABEL_16; v174 = (char *)v231[2]; } else { if ( v172 != LOBYTE(v231[0]) >> 1 ) goto LABEL_16; v174 = (char *)v231 + 1; } if ( v173 && memcmp(v174, a3, v173) ) { LABEL_16: v222 = &v228; std::string::basic_string(&v235, (unsigned __int8 *)&v228, v171, 0xFFFFFFFF); if ( (v228 & 1) != 0 ) { *v230 = 0; v229 = 0; } else { LOWORD(v228) = 0; } std::string::reserve(&v228, 0); v175 = v235; v176 = v236; v177 = v237; v235 = 0; v236 = 0; v237 = nullptr; v228 = v175; v229 = v176; v230 = v177; std::string::~string((int)&v235); v232 = 0; v233 = 0; v234 = 0; v178 = strlen(a3); std::string::__init(&v232, a3, v178); if ( (v228 & 1) != 0 ) { v179 = v230; v180 = v229; } else { v180 = (int)(unsigned __int8)v228 >> 1; v179 = (char *)&v228 + 1; } v181 = std::string::append(&v232, v179, v180); v182 = v181[1]; v183 = v181[2]; v235 = *v181; v236 = v182; v237 = (char *)v183; *v181 = 0; v181[1] = 0; v181[2] = 0; if ( (v228 & 1) != 0 ) { *v230 = 0; v229 = 0; } else { LOWORD(v228) = 0; } std::string::reserve(&v228, 0); v184 = v235; v185 = v236; v186 = v237; v235 = 0; v236 = 0; v237 = nullptr; v228 = v184; v229 = v185; v230 = v186; std::string::~string((int)&v235); std::string::~string((int)&v232); } } v187 = v231; goto LABEL_33; } LABEL_54: v220 = 1; LABEL_55: if ( v225 ) { operator delete[](v225); v225 = nullptr; } if ( v226 ) operator delete[](v226); return v220; }
GD Web Decomp Icon

GD Web Decomp

Raw Source