//
// EditorPauseLayer::saveLevel from 0x50910c to 0x50912c (32 bytes)
//
// 4 xrefs:
// > EditorPauseLayer::onSaveAndPlay @ 0x50914c
// > EditorPauseLayer::onSaveAndExit @ 0x5091e4
// > EditorPauseLayer::FLAlert_Clicked @ 0x50953e
// > EditorPauseLayer::FLAlert_Clicked @ 0x509578
//
// 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
//
int __fastcall EditorPauseLayer::saveLevel(EditorPauseLayer *this)
{
GManager *v2; // r0
int result; // r0
v2 = (GManager *)LocalLevelManager::sharedState(this);
GManager::waitForSave(v2, 30.0);
result = *((_DWORD *)this + 114);
if ( result )
return LevelEditorLayer::saveLevel(result);
return result;
}