// // LevelInfoLayer::setupPlatformerStats from 0x1002adc20 to 0x1002adfa7 (903 bytes) // // 1 xrefs: // > LevelInfoLayer::init @ 0x1002aac47 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:28:00 +0000 // void __fastcall LevelInfoLayer::setupPlatformerStats(_QWORD *a1, __int64 a2) { __int64 v3; // rax __int64 v4; // rdi int v5; // r15d unsigned int NormalPercent; // r14d __int64 v7; // rdi __int64 CString; // r15 __int64 v9; // rax double v10; // xmm0_8 std::string::pointer data; // r14 __int64 v12; // rax int v13; // xmm0_4 const std::string::value_type *v14; // rax __int64 v15; // rax const std::string::value_type *v16; // rax __int64 v17; // r14 std::string *v18; // rax char *v19; // rdi __int64 v20; // r15 unsigned __int64 *v21; // rbx char v22; // [rsp+0h] [rbp-80h] char v23; // [rsp+0h] [rbp-80h] unsigned __int64 v24; // [rsp+8h] [rbp-78h] BYREF std::string v25; // [rsp+10h] [rbp-70h] BYREF float v26; // [rsp+28h] [rbp-58h] BYREF __int128 v27; // [rsp+30h] [rbp-50h] BYREF void *__p; // [rsp+40h] [rbp-40h] std::string v29; // [rsp+48h] [rbp-38h] BYREF float v30; // [rsp+64h] [rbp-1Ch] v3 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(&v26, v3); v29.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)24; strcpy(v29.__r_.__value_.__s.__data_, "No Best Time"); v4 = a1[63]; v5 = *(_DWORD *)(v4 + 1296); NormalPercent = GJGameLevel::getNormalPercent(v4); if ( v5 <= 0 && NormalPercent - 1 < 0x63 ) { v7 = sub_10088E820("%i%%", v22); CString = cocos2d::CCString::getCString(v7); v30 = v26; v9 = cocos2d::CCDirector::sharedDirector(v7, NormalPercent); v10 = sub_100479750(v9); sub_100278250((float *)&v27, v30 * 0.5, *(float *)&v10 + 120.0); LevelInfoLayer::addProgressBar(a1, &v27, NormalPercent, 65280, "Best", CString); } else { data = v29.__r_.__value_.__s.__data_; if ( v5 <= 0 ) { v13 = 1124532224; } else { if ( (unsigned __int16)(v5 / 0xEA60u) % 0x3Cu == 0 && (unsigned int)v5 < 0x36EE80 ) { v12 = sub_10088E820("%i.%03d", v22); } else if ( (unsigned int)v5 > 0x36EE7F ) { v12 = sub_10088E820("%02d:%02d:%02d.%03d", v22); } else { v12 = sub_10088E820("%02d:%02d.%03d", v22); } v14 = (const std::string::value_type *)cocos2d::CCString::getCString(v12); std::string::assign(&v29, v14); v15 = sub_10088E820("Best Time: %s", v23); v16 = (const std::string::value_type *)cocos2d::CCString::getCString(v15); std::string::assign(&v29, v16); if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 ) data = v29.__r_.__value_.__l.__data_; v13 = 1125187584; } v30 = *(float *)&v13; v17 = cocos2d::CCLabelBMFont::create_3(data, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v17, 3); sub_100278250((float *)&v27, v26 * 0.5, v30); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v17 + 184LL))(v17, &v27); cocos2d::CCLabelBMFont::limitLabelWidth(v17, 200.0, 0.60000002, 0.0); if ( *(_DWORD *)(a1[63] + 1336LL) ) { GameToolbox::pointsToString(&v25); v18 = std::string::insert(&v25, 0, "Best Points: "); __p = v18->__r_.__value_.__l.__data_; v27 = *(_OWORD *)&v18->__r_.__value_.__l.0; *(_OWORD *)&v18->__r_.__value_.__l.0 = 0; v18->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v25.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v25.__r_.__value_.__l.__data_); if ( (v27 & 1) != 0 ) v19 = (char *)__p; else v19 = (char *)&v27 + 1; v20 = cocos2d::CCLabelBMFont::create_3(v19, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v20, 3); v21 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 192LL))(v17); sub_100278250((float *)&v24, 0.0, -28.0); sub_100278350((double *)&v25, v21, &v24); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v20 + 184LL))(v20, &v25); cocos2d::CCLabelBMFont::limitLabelWidth(v20, 200.0, 0.60000002, 0.0); if ( (v27 & 1) != 0 ) operator delete(__p); } } if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v29.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source