//
// KeybindingsSettingsPopup::onExport from 0x797010 to 0x7970b2 (162 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:59:46 +0000
//
int __fastcall KeybindingsSettingsPopup::onExport(KeybindingsSettingsPopup *this, cocos2d::CCObject *a2)
{
GJKeybindManager *v2; // r0
int result; // r0
int *v4; // r0
int *v5; // r0
int v6; // [sp+8h] [bp-10h] BYREF
int v7; // [sp+Ch] [bp-Ch]
int v8; // [sp+10h] [bp-8h]
v2 = (GJKeybindManager *)GJKeybindManager::sharedState(this);
result = GJKeybindManager::exportBindingsToFile(v2);
if ( result <= 0 )
{
if ( !result )
return result;
v6 = 0;
v7 = 0;
v8 = 0;
std::string::__init(&v6, "Could not write the file.", 0x19u);
v5 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Export Failed", (int)&v6, (ButtonSprite *)"OK", nullptr);
(*(void (__fastcall **)(int *))(*v5 + 656))(v5);
}
else
{
v6 = 0;
v7 = 0;
v8 = 0;
std::string::__init(&v6, "Bindings exported.", 0x12u);
v4 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Keybinds", (int)&v6, (ButtonSprite *)"OK", nullptr);
(*(void (__fastcall **)(int *))(*v4 + 656))(v4);
}
return std::string::~string((int)&v6);
}