// // DailyLevelNode::onSkipLevel from 0x100233460 to 0x1002335d1 (369 bytes) // // 1 xrefs: // > DailyLevelNode::init @ 0x100232e57 // // 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 DailyLevelNode::onSkipLevel(DailyLevelNode *a1, cocos2d::CCObject *a2) { unsigned __int64 m_type; // rax const std::string::value_type *v3; // rsi cocos2d::CCString *v4; // rax const char *CString; // r14 size_t v6; // rax size_t v7; // r15 char *v8; // r12 size_t v9; // r13 __int64 v10; // rbx char v11; // [rsp+0h] [rbp-60h] _QWORD __dst[2]; // [rsp+8h] [rbp-58h] BYREF void *__p; // [rsp+18h] [rbp-48h] std::string v14; // [rsp+20h] [rbp-40h] BYREF if ( a1->m_unkBool ) return; memset(&v14, 0, sizeof(v14)); m_type = (unsigned int)a1->m_page->m_type; if ( m_type >= 3 ) v3 = "NA"; else v3 = (char *)dword_100817EEC + dword_100817EEC[m_type]; std::string::assign(&v14, v3); v4 = (cocos2d::CCString *)sub_1007AB580( "There is a new %s available.\nSkip the current level and load the next?", v11); CString = cocos2d::CCString::getCString(v4); v6 = strlen(CString); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(0.0); v7 = v6; if ( v6 >= 0x17 ) { v9 = 26; if ( (v6 | 7) != 0x17 ) v9 = (v6 | 7) + 1; v8 = (char *)operator new(v9); __p = v8; __dst[0] = v9 | 1; __dst[1] = v7; } else { LOBYTE(__dst[0]) = 2 * v6; v8 = (char *)__dst + 1; if ( !v6 ) goto LABEL_13; } memmove(v8, CString, v7); LABEL_13: v8[v7] = 0; v10 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, "Skip level", __dst, "Cancel", "Skip", 330.0); if ( (__dst[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 1288LL))(v10); if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v14.__r_.__value_.__l.__data_); }