// // MusicDownloadManager::tryUpdateNewsFeed from 0x574594 to 0x5746aa (278 bytes) // // 3 xrefs: // > MenuLayer::init @ 0x3fade0 // > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x57473a // > NewsPopup::rebuildPage @ 0x6c1c80 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:52:40 +0000 // int __fastcall MusicDownloadManager::tryUpdateNewsFeed(MusicDownloadManager *this) { GameManager *v2; // r0 int result; // r0 int v4; // r5 int v5; // r5 int *Request; // r6 int v7; // r3 int v8[3]; // [sp+18h] [bp-2Ch] BYREF int v9[3]; // [sp+24h] [bp-20h] BYREF int v10; // [sp+30h] [bp-14h] BYREF int v11; // [sp+34h] [bp-10h] int v12; // [sp+38h] [bp-Ch] v2 = (GameManager *)GameManager::sharedState(this); result = GameManager::offlineModeEnabled(v2); if ( !result ) { result = MusicDownloadManager::tryLoadNewsFeed((int)this); v4 = *((unsigned __int8 *)this + 288); if ( (v4 & 1) != 0 ) v5 = *((_DWORD *)this + 73); else v5 = v4 >> 1; if ( v5 ) { if ( !*((_BYTE *)this + 560) ) { result = MusicDownloadManager::isDLActive(this, "v_news"); if ( !result ) { v10 = 0; v11 = 0; v12 = 0; *((_BYTE *)this + 560) = 1; std::string::__init(&v10, "/news/news_version.txt", 0x16u); MusicDownloadManager::generateCustomContentURL(v8, (int)this, (int)&v10); std::string::~string((int)&v10); std::string::basic_string(v9, (int)v8); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, &unk_B6B226, 0); Request = MusicDownloadManager::ProcessHttpGetRequest( this, (int)v9, (int)&v10, (int)MusicDownloadManager::onTryUpdateNewsFeedCompleted, 0, 5, 10); std::string::~string((int)&v10); std::string::~string((int)v9); MusicDownloadManager::addDLToActive(this, "v_news", (cocos2d::CCObject *)Request, v7); return std::string::~string((int)v8); } } } else { *((_BYTE *)this + 562) = 1; return MusicDownloadManager::getCustomContentURL(this); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source