//
// LevelInfoLayer::showSongWarning from 0x49a958 to 0x49a9d0 (120 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::onPlay @ 0x49b5b2
//
// 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:49:45 +0000
//
int __fastcall LevelInfoLayer::showSongWarning(LevelInfoLayer *this)
{
int *v2; // r5
int v4[3]; // [sp+8h] [bp-10h] BYREF
memset(v4, 0, sizeof(v4));
std::string::__init(
v4,
"This level uses a custom song that has not been downloaded yet.\n"
"Do you want to play without music?\n"
"Download by using the bar below",
0x9Au);
v2 = FLAlertLayer::create(
(int)this + 332,
(cocos2d::CCLabelBMFont *)"No Song",
(int)v4,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Play",
300.0);
std::string::~string((int)v4);
(*(void (__fastcall **)(int *, int))(*v2 + 36))(v2, 9);
return (*(int (__fastcall **)(int *))(*v2 + 656))(v2);
}