//
// GameLevelManager::onRestoreItemsCompleted from 0x3c45f0 to 0x3c46d2 (226 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x3d7212
//
// 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
//
int __fastcall GameLevelManager::onRestoreItemsCompleted(GameLevelManager *a1, int a2)
{
_BOOL4 v3; // r6
FLAlertLayer *v4; // r6
FLAlertLayer *v6; // r6
_BYTE v7[4]; // [sp+10h] [bp+4h] BYREF
GameLevelManager::removeDLFromActive(a1, "restoreKey");
sub_776584((int)v7, "-1");
v3 = sub_3BE0D8(a2, (int)v7);
sub_774008(v7);
if ( v3 )
{
sub_776584((int)v7, "No restore data found.");
v4 = FLAlertLayer::create(0, (int)"Error", (int)v7, (int)"OK", 0, 300.0);
sub_774008(v7);
return ((int (__fastcall *)(FLAlertLayer *))v4->show)(v4);
}
else
{
sub_776584((int)v7, "Your data has been restored.");
v6 = FLAlertLayer::create(0, (int)"Data restored", (int)v7, (int)"OK", 0, 300.0);
sub_774008(v7);
v6->show(v6);
sub_775C20(v7, a2);
GameLevelManager::parseRestoreData();
return sub_774008(v7);
}
}