// // PauseLayer::setupPlatformerLabels from 0x1003c2bf0 to 0x1003c2f59 (873 bytes) // // 1 xrefs: // > PauseLayer::setupProgressBars @ 0x1003c0ff1 // // 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:29:33 +0000 // void __fastcall PauseLayer::setupPlatformerLabels(__int64 a1, __int64 a2) { __int64 v3; // rax unsigned __int8 v4; // r12 float v5; // xmm2_4 float v6; // xmm1_4 __int64 v7; // rax int PlayTimerMilli; // eax __int64 v9; // rax const std::string::value_type *CString; // rax __int64 v11; // rax __int64 v12; // rax __int64 v13; // r14 std::string *v14; // rax char *v15; // rdi __int64 v16; // r14 unsigned __int64 v17; // [rsp+0h] [rbp-90h] BYREF double v18; // [rsp+8h] [rbp-88h] BYREF std::string v19; // [rsp+10h] [rbp-80h] BYREF float v20[2]; // [rsp+28h] [rbp-68h] BYREF __int128 v21; // [rsp+30h] [rbp-60h] BYREF void *__p; // [rsp+40h] [rbp-50h] std::string v23; // [rsp+50h] [rbp-40h] BYREF float v24; // [rsp+6Ch] [rbp-24h] v3 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(v20, v3); v4 = *(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1920LL); if ( v4 ) { v5 = 100.0; if ( (_DWORD)a2 ) goto LABEL_6; goto LABEL_5; } v5 = 92.0; if ( !(_DWORD)a2 ) LABEL_5: v5 = 85.0; LABEL_6: sub_100278250((float *)&v17, v20[0] * 0.5, (float)(0.5 * v20[1]) + v5); if ( (v4 & (unsigned __int8)a2) != 0 ) { v24 = 0.64000005; v6 = -27.0; } else { v24 = 0.80000001; v6 = -35.0; } sub_100278250((float *)&v23, 0.0, v6); sub_100278350(&v18, &v17, (unsigned __int64 *)&v23); v7 = GameManager::sharedState(); PlayTimerMilli = GJBaseGameLayer::getPlayTimerMilli(*(_QWORD *)(v7 + 544)); memset(&v23, 0, sizeof(v23)); if ( PlayTimerMilli / 60000 % 60 != 0 || (unsigned int)(PlayTimerMilli + 3599999) >= 0x6DDCFF ) { if ( (unsigned int)(PlayTimerMilli + 3599999) > 0x6DDCFE ) v9 = sub_10088E820("%02d:%02d:%02d.%03d", v17); else v9 = sub_10088E820("%02d:%02d.%03d", v17); } else { v9 = sub_10088E820("%i.%03d", v17); } CString = (const std::string::value_type *)cocos2d::CCString::getCString(v9); std::string::assign(&v23, CString); v11 = sub_10088E820("Time: %s", v17); v12 = cocos2d::CCString::getCString(v11); v13 = cocos2d::CCLabelBMFont::create_3(v12, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 632) + 464LL))(*(_QWORD *)(a1 + 632), v13, 3); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v13 + 184LL))(v13, &v17); cocos2d::CCLabelBMFont::limitLabelWidth(v13, 150.0, v24, 0.0); if ( v4 ) { GameManager::sharedState(); GameToolbox::pointsToString(&v19); v14 = std::string::insert(&v19, 0, "Points: "); __p = v14->__r_.__value_.__l.__data_; v21 = *(_OWORD *)&v14->__r_.__value_.__l.0; *(_OWORD *)&v14->__r_.__value_.__l.0 = 0; v14->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v19.__r_.__value_.__l.__data_); if ( (v21 & 1) != 0 ) v15 = (char *)__p; else v15 = (char *)&v21 + 1; v16 = cocos2d::CCLabelBMFont::create_3(v15, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 632) + 464LL))(*(_QWORD *)(a1 + 632), v16, 3); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v16 + 184LL))(v16, &v18); cocos2d::CCLabelBMFont::limitLabelWidth(v16, 150.0, v24, 0.0); if ( (v21 & 1) != 0 ) operator delete(__p); } if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v23.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source