// // GJGameLevel::init from 0x14016c6a0 to 0x14016c8aa (522 bytes) // // 2 xrefs: // > @ 0x14055c398 // > @ 0x1406cad94 // // 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 GJGameLevel::init(GJGameLevel *a1) { int v2; // eax int v3; // eax int v4; // eax int v5; // eax int v6; // eax int v7; // eax int v8; // eax int v9; // eax int v10; // eax int v11; // eax int v12; // eax int v13; // eax __int64 v14; // rcx cocos2d::CCDictionary *v15; // rax cocos2d::CCDictionary *v16; // rdi cocos2d::CCDictionary *m_lastBuildSave; // rcx sub_14003CCE0((void **)&a1->m_levelName, byte_140518980, 0); sub_14003CCE0((void **)&a1->m_levelDesc, byte_140518980, 0); sub_14003CCE0((void **)&a1->m_levelString, byte_140518980, 0); sub_14003CCE0((void **)&a1->m_personalBests, byte_140518980, 0); v2 = dword_1406C2EC8; a1->m_M_ID = dword_1406C2EC8; dword_1406C2EC8 = v2 + 1; a1->m_levelVersion = 1; a1->m_levelType = 0; a1->m_attempts.value = 0; v3 = rand(); a1->m_jumps.value = 0; v4 = (int)(float)((float)((float)v3 / 32767.0) * 1000.0); a1->m_attempts.seed = v4; a1->m_attempts.random = v4; v5 = rand(); a1->m_clicks.value = 0; v6 = (int)(float)((float)((float)v5 / 32767.0) * 1000.0); a1->m_jumps.seed = v6; a1->m_jumps.random = v6; v7 = rand(); a1->m_attemptTime.value = 0; v8 = (int)(float)((float)((float)v7 / 32767.0) * 1000.0); a1->m_clicks.seed = v8; a1->m_clicks.random = v8; v9 = rand(); a1->m_chk = 0; a1->m_coins = 0; a1->m_stars.value = 0; v10 = (int)(float)((float)((float)v9 / 32767.0) * 1000.0); a1->m_attemptTime.seed = v10; a1->m_attemptTime.random = v10; v11 = rand(); a1->m_demon.value = 0; v12 = (int)(float)((float)((float)v11 / 32767.0) * 1000.0); a1->m_stars.seed = v12; a1->m_stars.random = v12; v13 = (int)(float)((float)((float)rand() / 32767.0) * 1000.0); *(_WORD *)&a1->m_dontSave = 0; a1->m_demon.seed = v13; a1->m_demon.random = v13; v15 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v14); v16 = v15; if ( a1->m_lastBuildSave != v15 ) { if ( v15 ) cocos2d::CCObject::retain(v15); m_lastBuildSave = a1->m_lastBuildSave; if ( m_lastBuildSave ) cocos2d::CCObject::release(m_lastBuildSave); a1->m_lastBuildSave = v16; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source