// // PauseLayer::tryQuit from 0x14037e9c0 to 0x14037eb50 (400 bytes) // // 4 xrefs: // > PauseLayer::keyDown @ 0x14037edc9 // > PauseLayer::keyBackClicked @ 0x14037edf9 // > PauseLayer::customSetup @ 0x14037cd81 // > @ 0x1406d5dd4 // // 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 // // Hidden C++ exception states: #wind=2 void PauseLayer::tryQuit(PauseLayer *a1, cocos2d::CCObject *a2) { GameManager *v3; // rcx cocos2d::CCObject *v4; // rdx int v5; // ebx __int64 v6; // rax FLAlertLayer *v7; // rbx __int128 v8; // [rsp+50h] [rbp-48h] BYREF __int64 v9; // [rsp+60h] [rbp-38h] __int64 v10; // [rsp+68h] [rbp-30h] _BYTE v11[40]; // [rsp+70h] [rbp-28h] BYREF void *v12; // [rsp+B0h] [rbp+18h] v3 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v12 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GameManager *)qword_1406C2ED8; } if ( GameManager::getGameVariable(v3, "0167") ) { v5 = (_DWORD)a1 + 552; if ( !a1 ) v5 = 0; v8 = 0; *(_QWORD *)&v8 = sub_14003AA10(0x30u); v9 = 38; v10 = 47; strcpy((char *)v8, "Are you sure you want to exit?"); v6 = sub_14003BDB0((__int64)v11, (__int64)&v8); v7 = FLAlertLayer::create( v5, (int)"Exit Level", v6, (__int64)"Cancel", (__int64)"Exit", 1133903872, 0, 0, 1065353216); sub_14003A830((__int64)&v8); v7->setTag(v7, 0); v7->show(v7); } else { PauseLayer::onQuit(a1, v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source