// // SecretRewardsLayer::showLockedChest from 0x58538c to 0x5854d6 (330 bytes) // // 0 xrefs: // // 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 // void SecretRewardsLayer::showLockedChest(SecretRewardsLayer *a1) { char *v2; // r1 std::string v3; // r9 DialogObject *v4; // r0 DialogLayer *v5; // r9 int v6; // r6 int v7; // [sp+4h] [bp-20h] _BYTE v8[4]; // [sp+10h] [bp-14h] BYREF char v9; // [sp+14h] [bp-10h] BYREF _BYTE v10[4]; // [sp+18h] [bp-Ch] BYREF sub_776584((int)v8, "zzz"); switch ( a1->m_lockedDialogIndex ) { case 0: v2 = "The chest is not ready."; goto LABEL_3; case 1: v2 = "It's still not ready..."; goto LABEL_3; case 2: v2 = "Seriously, stop."; goto LABEL_3; case 3: sub_7753D4((int)v8, "Wow it magically opened!"); v3.m_data.m_data = (stl::StringData::Internal *)(&word_10 + 1); goto LABEL_15; case 4: v2 = "I was wrong."; goto LABEL_3; case 5: v2 = "S T O P"; goto LABEL_3; case 6: v2 = "El cofre esta cerrado."; goto LABEL_3; case 7: v2 = "This is getting ridiculous."; goto LABEL_3; case 8: v2 = "I really can't help you."; goto LABEL_3; case 9: v2 = "Don't make me do it..."; goto LABEL_3; case 0xA: v2 = "Roses are red. Violets are blue. This is not. 2.2"; LABEL_3: sub_7753D4((int)v8, v2); break; default: break; } v3.m_data.m_data = (stl::StringData::Internal *)(&dword_0 + 2); LABEL_15: sub_776584((int)&v9, "The Keymaster"); sub_775C20(v10); LOWORD(v7) = -1; BYTE2(v7) = -1; v4 = (DialogObject *)DialogObject::create((DialogObject *)&v9, (std::string)v10, v3, 1065353216, 0.0, v7); v5 = DialogLayer::create(v4, (int)&dword_0 + 2); sub_774008(v10); sub_774008(&v9); DialogLayer::addToMainScene(v5); DialogLayer::updateChatPlacement(v5, Center); DialogLayer::animateInRandomSide(v5); v6 = a1->m_lockedDialogIndex + 1; if ( v6 > 10 ) a1->m_lockedDialogIndex = 0; else a1->m_lockedDialogIndex = v6; sub_774008(v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source