// // InfoLayer::commentUploadFinished from 0x1007b2e00 to 0x1007b2f24 (292 bytes) // // 2 xrefs: // > sub_1007B2F30 @ 0x1007b2f3c // > @ 0x100992a00 // // 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 InfoLayer::commentUploadFinished(InfoLayer *a1, int a2) { GJLevelList *m_levelList; // rcx GJGameLevel *m_level; // rcx GameManager *v4; // rax GameManager *v5; // rax bool GameVariable; // r14 ButtonSprite *v7; // rax const char *v8; // r15 const char *v9; // rsi ButtonSprite *v10; // rax if ( !a1->m_score ) { m_levelList = a1->m_levelList; if ( m_levelList ) { if ( -m_levelList->m_listID != a2 ) return; } else { m_level = a1->m_level; if ( m_level ) { if ( m_level->m_levelID.random - m_level->m_levelID.seed != a2 ) return; } else if ( a2 ) { return; } } v4 = GameManager::sharedState(); GameManager::setGameVariable(v4, "0069", 0); v5 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v5, "0069"); v7 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_likeBtn->getNormalImage)(a1->m_likeBtn); v8 = "GJ_button_02.png"; v9 = "GJ_button_01.png"; if ( GameVariable ) { v9 = "GJ_button_02.png"; v8 = "GJ_button_01.png"; } ButtonSprite::updateBGImage(v7, v9); v10 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_timeBtn->getNormalImage)(a1->m_timeBtn); ButtonSprite::updateBGImage(v10, v8); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_likeBtn->setEnabled)(a1->m_likeBtn, !GameVariable); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_timeBtn->setEnabled)(a1->m_timeBtn, GameVariable); InfoLayer::loadPage(a1, 0, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source