//
// AutoSaveSettingsLayer::getBackupCap from 0xbc9844 to 0xbc9874 (48 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::doAutoBackup @ 0x7a85c4
// > AutoBackupOptionsPopup::getValue @ 0xc51cb0
// > AutoBackupOptionsPopup::onPrune @ 0xc58b90
// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0xc58ee0
// > ??> @ 0x79d38
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:03:33 +0000
//
__int64 __fastcall AutoSaveSettingsLayer::getBackupCap(AutoSaveSettingsLayer *this)
{
GameManager *v1; // x0
int IntGameVariable; // w0
v1 = (GameManager *)GameManager::sharedState(this);
IntGameVariable = GameManager::getIntGameVariable(v1, "0236");
if ( IntGameVariable <= 0 )
return 20;
else
return (unsigned int)(IntGameVariable - 1);
}