// // GameLevelManager::onRateDemonCompleted from 0x3c1b34 to 0x3c1c38 (260 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x3d7586 // // 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 // int __fastcall GameLevelManager::onRateDemonCompleted(GameLevelManager *a1, int a2, char **a3, int a4) { const char *v4; // r8 cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r9 const char *SplitIntFromKey; // r8 _BOOL4 v9; // r9 UploadActionDelegate *m_uploadActionDelegate; // r0 cocos2d::CCDictionary *m_ratedDemons; // r5 cocos2d::CCString *v12; // r0 char *CString; // r0 int result; // r0 _BOOL4 v15; // r6 GameManager *v16; // r0 _DWORD v19[2]; // [sp+8h] [bp-8h] BYREF v19[0] = a3; v19[1] = a4; v4 = *a3; m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; sub_776584((int)v19, *a3); cocos2d::CCDictionary::removeObjectForKey(m_friendReqAndUserBlocks); sub_774008(v19); SplitIntFromKey = (const char *)GameLevelManager::getSplitIntFromKey(a1, v4, 1); sub_776584((int)v19, "-1"); v9 = sub_3BE0D8(a2, (int)v19); sub_774008(v19); if ( v9 ) { m_uploadActionDelegate = a1->m_uploadActionDelegate; if ( m_uploadActionDelegate ) ((void (__fastcall *)(UploadActionDelegate *, const char *, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int), GameLevelManager *, int))m_uploadActionDelegate->uploadActionFailed)( m_uploadActionDelegate, SplitIntFromKey, 50, m_uploadActionDelegate->uploadActionFailed, a1, a2); m_ratedDemons = a1->m_ratedDemons; v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", SplitIntFromKey); CString = (char *)cocos2d::CCString::getCString(v12); sub_776584((int)v19, CString); cocos2d::CCDictionary::removeObjectForKey(m_ratedDemons); return sub_774008(v19); } else { sub_776584((int)v19, "-2"); v15 = sub_3BE0D8(a2, (int)v19); sub_774008(v19); if ( v15 ) { v16 = GameManager::sharedState(); GameManager::setHasRatingPower(v16, 0); result = (int)a1->m_uploadActionDelegate; if ( result ) return (*(int (__fastcall **)(int, const char *))(*(_DWORD *)result + 4))(result, SplitIntFromKey); } else { result = (int)a1->m_uploadActionDelegate; if ( result ) return (**(int (__fastcall ***)(int, const char *))result)(result, SplitIntFromKey); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source