// // ShareLevelSettingsLayer::onUnlisted from 0x1002830a0 to 0x100283268 (456 bytes) // // 1 xrefs: // > ShareLevelSettingsLayer::init @ 0x100282a09 // // 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 ShareLevelSettingsLayer::onUnlisted(ShareLevelSettingsLayer *a1, cocos2d::CCObject *a2) { GameManager *v2; // rax GameManager *v3; // rax __int64 v4; // r14 GJGameLevel *m_level; // rax bool m_unlisted; // r15 void *v7; // r14 __int64 v8; // rax __int64 v9; // rax _QWORD v10[2]; // [rsp+0h] [rbp-30h] BYREF void *__p; // [rsp+10h] [rbp-20h] a1->m_level->m_unlisted ^= 1u; v2 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v2, "0070") ) { v3 = GameManager::sharedState(); GameManager::setGameVariable(v3, "0070", 1); __p = operator new(0x78u); v10[0] = 121; v10[1] = 119; strcpy( (char *)__p, "An unlisted level can only be found by entering its levelID. Once a level is unlisted, it cannot change back to listed."); v4 = FLAlertLayer::create_1(0, "Unlisted", v10, "OK", 0, 320.0); if ( (v10[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1288LL))(v4); } m_level = a1->m_level; m_unlisted = m_level->m_unlisted; if ( m_unlisted ) { v7 = &unk_1008189CA; } else { m_level->m_friendsOnly = 0; CCMenuItemToggler::toggle(a1->m_friendsOnlyToggler, 0); v7 = &unk_1008189C7; } ((void (__fastcall *)(CCMenuItemToggler *, bool))a1->m_friendsOnlyToggler->setEnabled)( a1->m_friendsOnlyToggler, m_unlisted); v8 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_friendsOnlyToggler->m_offButton->getNormalImage)(a1->m_friendsOnlyToggler->m_offButton); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v8 + 944LL))(v8, v7); v9 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_friendsOnlyToggler->m_onButton->getNormalImage)(a1->m_friendsOnlyToggler->m_onButton); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v9 + 944LL))(v9, v7); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_friendsOnlyLabel->setColor)(a1->m_friendsOnlyLabel, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source