//
// EditorPauseLayer::onExitNoSave from 0x50945c to 0x5094f4 (152 bytes)
//
// 0 xrefs:
//
// 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:51:26 +0000
//
char **__fastcall EditorPauseLayer::onExitNoSave(char **this, cocos2d::CCObject *a2)
{
int v2; // r1
char **v3; // r5
int *v4; // r5
int v5[3]; // [sp+8h] [bp-10h] BYREF
v2 = *((unsigned __int8 *)this + 452);
v3 = this;
if ( !*((_BYTE *)this + 452) )
{
if ( *(_DWORD *)(*((_DWORD *)*(this + 114) + 352) + 952) == 2 )
{
v5[0] = *((unsigned __int8 *)this + 452);
v5[1] = v2;
v5[2] = v2;
std::string::__init(v5, "Exit without saving? All unsaved changes will be lost!", 0x46u);
v4 = FLAlertLayer::create(
(int)(v3 + 111),
(cocos2d::CCLabelBMFont *)"Exit",
(int)v5,
(ButtonSprite *)"NO",
(ButtonSprite *)"YES",
300.0);
std::string::~string((int)v5);
(*(void (__fastcall **)(int *, int))(*v4 + 36))(v4, 1);
return (char **)(*(int (__fastcall **)(int *))(*v4 + 656))(v4);
}
else
{
return EditorPauseLayer::onExitEditor((LevelEditorLayer **)this, (cocos2d::CCObject *)v2);
}
}
return this;
}