// // GJStoreItem::init from 0x100340840 to 0x10034092c (236 bytes) // // 1 xrefs: // > GJStoreItem::create @ 0x10032be0c // // 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 // bool __fastcall GJStoreItem::init(GJStoreItem *a1, int a2, int a3, int a4, int a5, ShopType a6) { _BOOL4 v12; // w22 float v13; // s0 float v14; // s0 float v15; // s0 float v16; // s0 v12 = cocos2d::CCNode::init(a1); if ( v12 ) { a1->m_index.value = a2; v13 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; a1->m_index.seed = (int)v13; a1->m_index.random = (int)v13 + a2; a1->m_typeID.value = a3; v14 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; a1->m_typeID.seed = (int)v14; a1->m_typeID.random = (int)v14 + a3; a1->m_unlockType.value = a4; v15 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; a1->m_unlockType.seed = (int)v15; a1->m_unlockType.random = (int)v15 + a4; a1->m_price.value = a5; v16 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; a1->m_price.seed = (int)v16; a1->m_price.random = (int)v16 + a5; a1->m_shopType = a6; } return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source