// // GameSettingsLayer::valueDidChange from 0x100166858 to 0x1001669e8 (400 bytes) // // 1 xrefs: // > @ 0x1008e3450 // // 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 10:59:48 +0000 // __int64 __fastcall GameSettingsLayer::valueDidChange(_QWORD *a1, int a2, float a3) { __int64 result; // x0 __int64 (*v6)(void); // x1 __int64 v7; // x20 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x20 __int64 v11; // x0 __int64 v12; // x0 int v13; // [xsp+Ch] [xbp-34h] BYREF v13 = a2; if ( a2 <= -3 ) { if ( a2 == -4 ) { result = GameManager::sharedState(a1); *(float *)(result + 1108) = a3; return result; } if ( a2 == -3 ) { result = FMODAudioEngine::sharedEngine(a1); *(_DWORD *)(result + 548) = (int)a3; return result; } goto LABEL_10; } if ( a2 != -2 ) { if ( a2 != -1 ) { LABEL_10: result = (__int64)sub_100019268(a1 + 138, &v13); if ( result ) { v7 = result; v8 = GameManager::sharedState(result); GameManager::setGameVariable(v8, *(_QWORD *)(v7 + 24), a3 != 0.0); return sub_100166CC4((int)a1, *(char **)(v7 + 24)); } return result; } *(_BYTE *)(GameManager::sharedState(a1) + 924) = a3 != 0.0; result = a1[137]; if ( !result ) return result; v6 = *(__int64 (**)(void))(*(_QWORD *)result + 1568LL); return v6(); } v9 = GameStatsManager::sharedState(a1); v10 = sub_1003D4738(v9, 12, 17); v11 = GameStatsManager::sharedState(v10); result = GameStatsManager::isItemUnlocked(v11, 12, 17); if ( (result & 1) == 0 ) { (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 1448LL))(a1, 4294967294LL, v10); return sub_1001669E8(a1); } if ( (a3 != 0.0) != (_DWORD)v10 ) { v12 = GameStatsManager::sharedState(result); GameStatsManager::toggleEnableItem(v12, 12, 17, a3 != 0.0); result = a1[137]; if ( result ) { v6 = *(__int64 (**)(void))(*(_QWORD *)result + 1592LL); return v6(); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source