// // CustomSongWidget::updateError from 0x14016ea00 to 0x14016eac6 (198 bytes) // // 3 xrefs: // > CustomSongWidget::loadSongInfoFailed @ 0x14016e124 // > CustomSongWidget::downloadSongFailed @ 0x14016e28d // > @ 0x140918218 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:27:30 +0000 // __int64 __fastcall CustomSongWidget::updateError(__int64 a1, int a2) { void (__fastcall ***v4)(_QWORD, __int16 *); // rcx int v5; // ebx int v6; // ebx const char *v7; // rdx float v8; // xmm2_4 float v9; // xmm1_4 __int16 v11; // [rsp+38h] [rbp+10h] BYREF char v12; // [rsp+3Ah] [rbp+12h] v11 = 13055; v4 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 376) + 368LL); v12 = 25; (**v4)(v4, &v11); v5 = a2 - 1; if ( v5 ) { v6 = v5 - 1; if ( v6 ) { if ( v6 == 1 ) v7 = "Download canceled."; else v7 = "Download failed. Please try later."; } else { v7 = "Song is not allowed for use."; } } else { v7 = "Failed to fetch song info."; } (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 376) + 360LL))(*(_QWORD *)(a1 + 376) + 360LL, v7); if ( *(_BYTE *)(a1 + 501) ) { v8 = 0.34999999; v9 = 140.0; } else { v8 = 0.40000001; v9 = 230.0; } cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 376), v9, v8, 0.0); return CustomSongWidget::showError(a1, 0); }