// // GameManager::encodeDataTo from 0x72a000 to 0x72abbc (3004 bytes) // // 2 xrefs: // > @ 0xbfec0 // > @ 0x14295e8 // // 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 12:52:33 +0000 // __int64 __fastcall GameManager::encodeDataTo(GameManager *this, DS_Dictionary *a2) { GameManager *v4; // x0 __int64 v5; // x0 char *v6; // x25 int v7; // w23 FMODAudioEngine *v8; // x0 FMODAudioEngine *v9; // x0 float BackgroundMusicVolume; // s0 FMODAudioEngine *v11; // x0 FMODAudioEngine *v12; // x0 float EffectsVolume; // s0 FMODAudioEngine *v14; // x0 __int64 v15; // x0 AchievementManager *v16; // x0 cocos2d::CCDictionary **v17; // x0 GameLevelManager *v18; // x0 GameLevelManager *v19; // x0 GameStatsManager *v20; // x0 GameStatsManager *v21; // x0 MusicDownloadManager *v22; // x0 MusicDownloadManager *v23; // x0 GJAccountManager *v24; // x0 GJAccountManager *v25; // x0 GJMultiplayerManager *v26; // x0 GJMultiplayerManager *v27; // x0 GJKeybindManager *v28; // x0 GJKeybindManager *v29; // x0 EditorSFXManager *v30; // x0 EditorSFXManager *v31; // x0 char *v32; // x20 int v33; // w3 const char *v34; // x1 size_t v35; // x0 const char *v36; // x1 size_t v37; // x0 const char *v38; // x1 size_t v39; // x0 const char *v40; // x1 size_t v41; // x0 const char *v42; // x1 size_t v43; // x0 const char *v44; // x1 size_t v45; // x0 const char *v46; // x1 size_t v47; // x0 char *v49; // [xsp+68h] [xbp+68h] char *v50; // [xsp+68h] [xbp+68h] char *v51; // [xsp+68h] [xbp+68h] char *v52; // [xsp+68h] [xbp+68h] char *v53; // [xsp+68h] [xbp+68h] char *v54; // [xsp+68h] [xbp+68h] char *v55; // [xsp+68h] [xbp+68h] __int64 v56; // [xsp+70h] [xbp+70h] BYREF __int64 v57; // [xsp+78h] [xbp+78h] void *v58; // [xsp+80h] [xbp+80h] char s[32]; // [xsp+88h] [xbp+88h] BYREF v4 = *(GameManager **)(GameManager::sharedState(_stack_chk_guard) + 544); if ( v4 ) { v5 = GameManager::sharedState(v4); PlayLayer::writePersistentSave(*(PlayLayer **)(v5 + 544)); } DS_Dictionary::setDictForKey(a2, "valueKeeper", *((cocos2d::CCDictionary **)this + 53)); if ( !*((_BYTE *)this + 440) ) DS_Dictionary::setDictForKey(a2, "localKeeper", *((cocos2d::CCDictionary **)this + 54)); v6 = (char *)this + 1120; v7 = 0; DS_Dictionary::setDictForKey(a2, "unlockValueKeeper", *((cocos2d::CCDictionary **)this + 56)); v8 = (FMODAudioEngine *)DS_Dictionary::setDictForKey(a2, "customObjectDict", *((cocos2d::CCDictionary **)this + 57)); v9 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v8); BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v9); v11 = (FMODAudioEngine *)DS_Dictionary::setFloatForKey(a2, "bgVolume", BackgroundMusicVolume); v12 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v11); EffectsVolume = FMODAudioEngine::getEffectsVolume(v12); v14 = (FMODAudioEngine *)DS_Dictionary::setFloatForKey(a2, "sfxVolume", EffectsVolume); v15 = FMODAudioEngine::sharedEngine(v14); DS_Dictionary::setIntegerForKey(a2, "timeOffset", *(_DWORD *)(v15 + 548)); DS_Dictionary::setStringForKey(a2, "playerUDID", (char *)this + 608); DS_Dictionary::setStringForKey(a2, "playerName", (char *)this + 632); DS_Dictionary::setIntegerForKey(a2, "playerUserID", *((_DWORD *)this + 165) - *((_DWORD *)this + 166)); DS_Dictionary::setIntegerForKey(a2, "playerFrame", *((_DWORD *)this + 179) - *((_DWORD *)this + 180)); DS_Dictionary::setIntegerForKey(a2, "playerShip", *((_DWORD *)this + 182) - *((_DWORD *)this + 183)); DS_Dictionary::setIntegerForKey(a2, "playerBall", *((_DWORD *)this + 185) - *((_DWORD *)this + 186)); DS_Dictionary::setIntegerForKey(a2, "playerBird", *((_DWORD *)this + 188) - *((_DWORD *)this + 189)); DS_Dictionary::setIntegerForKey(a2, "playerDart", *((_DWORD *)this + 191) - *((_DWORD *)this + 192)); DS_Dictionary::setIntegerForKey(a2, "playerRobot", *((_DWORD *)this + 194) - *((_DWORD *)this + 195)); DS_Dictionary::setIntegerForKey(a2, "playerSpider", *((_DWORD *)this + 197) - *((_DWORD *)this + 198)); DS_Dictionary::setIntegerForKey(a2, "playerSwing", *((_DWORD *)this + 200) - *((_DWORD *)this + 201)); DS_Dictionary::setIntegerForKey(a2, "playerColor", *((_DWORD *)this + 203) - *((_DWORD *)this + 204)); DS_Dictionary::setIntegerForKey(a2, "playerColor2", *((_DWORD *)this + 206) - *((_DWORD *)this + 207)); DS_Dictionary::setIntegerForKey(a2, "playerColor3", *((_DWORD *)this + 209) - *((_DWORD *)this + 210)); DS_Dictionary::setIntegerForKey(a2, "playerStreak", *((_DWORD *)this + 212) - *((_DWORD *)this + 213)); DS_Dictionary::setIntegerForKey(a2, "playerShipStreak", *((_DWORD *)this + 215) - *((_DWORD *)this + 216)); DS_Dictionary::setIntegerForKey(a2, "playerDeathEffect", *((_DWORD *)this + 218) - *((_DWORD *)this + 219)); DS_Dictionary::setIntegerForKey(a2, "playerJetpack", *((_DWORD *)this + 221) - *((_DWORD *)this + 222)); DS_Dictionary::setIntegerForKey(a2, "playerIconType", *((_DWORD *)this + 229)); DS_Dictionary::setBoolForKey(a2, "playerGlow", *((_BYTE *)this + 912)); DS_Dictionary::setIntegerForKey(a2, "secretNumber", *((_DWORD *)this + 226) - *((_DWORD *)this + 227)); DS_Dictionary::setIntegerForKey(a2, "hasRP", *((_DWORD *)this + 258) - *((_DWORD *)this + 259)); DS_Dictionary::setBoolForKey(a2, "hasDRP", *((_BYTE *)this + 1044)); v16 = (AchievementManager *)DS_Dictionary::setIntegerForKey(a2, "specialPermKey", *((_DWORD *)this + 262)); v17 = (cocos2d::CCDictionary **)AchievementManager::sharedState(v16); v18 = (GameLevelManager *)AchievementManager::encodeDataTo(v17, a2); v19 = (GameLevelManager *)GameLevelManager::sharedState(v18); v20 = (GameStatsManager *)GameLevelManager::encodeDataTo(v19, a2); v21 = (GameStatsManager *)GameStatsManager::sharedState(v20); v22 = (MusicDownloadManager *)GameStatsManager::encodeDataTo(v21, a2); v23 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v22); v24 = (GJAccountManager *)MusicDownloadManager::encodeDataTo(v23, a2); v25 = (GJAccountManager *)GJAccountManager::sharedState(v24); v26 = (GJMultiplayerManager *)GJAccountManager::encodeDataTo(v25, a2); v27 = (GJMultiplayerManager *)GJMultiplayerManager::sharedState(v26); v28 = (GJKeybindManager *)GJMultiplayerManager::encodeDataTo(v27, a2); v29 = (GJKeybindManager *)GJKeybindManager::sharedState(v28); v30 = (EditorSFXManager *)GJKeybindManager::encodeDataTo(v29, a2); v31 = (EditorSFXManager *)EditorSFXManager::sharedState(v30); EditorSFXManager::encodeDataTo(v31, a2); DS_Dictionary::setBoolForKey(a2, "showSongMarkers", *((_BYTE *)this + 921)); DS_Dictionary::setBoolForKey(a2, "showBPMMarkers", *((_BYTE *)this + 922)); DS_Dictionary::setBoolForKey(a2, "recordGameplay", *((_BYTE *)this + 923)); DS_Dictionary::setBoolForKey(a2, "showProgressBar", *((_BYTE *)this + 924)); DS_Dictionary::setBoolForKey(a2, "performanceMode", *((_BYTE *)this + 925)); DS_Dictionary::setBoolForKey(a2, "clickedGarage", *((_BYTE *)this + 927)); DS_Dictionary::setBoolForKey(a2, "clickedEditor", *((_BYTE *)this + 928)); DS_Dictionary::setBoolForKey(a2, "clickedName", *((_BYTE *)this + 929)); DS_Dictionary::setBoolForKey(a2, "clickedPractice", *((_BYTE *)this + 930)); DS_Dictionary::setBoolForKey(a2, "showedEditorGuide", *((_BYTE *)this + 931)); DS_Dictionary::setBoolForKey(a2, "showedRateDiffDialog", *((_BYTE *)this + 932)); DS_Dictionary::setBoolForKey(a2, "showedRateStarDialog", *((_BYTE *)this + 933)); DS_Dictionary::setBoolForKey(a2, "showedLowDetailDialog", *((_BYTE *)this + 934)); DS_Dictionary::setIntegerForKey(a2, "bootups", *((_DWORD *)this + 255)); DS_Dictionary::setBoolForKey(a2, "hasRatedGame", *((_BYTE *)this + 1024)); DS_Dictionary::setIntegerForKey(a2, "binaryVersion", 51); DS_Dictionary::setIntegerForKey(a2, "resolution", *((_DWORD *)this + 264)); DS_Dictionary::setIntegerForKey(a2, "texQuality", *((_DWORD *)this + 265)); DS_Dictionary::setFloatForKey(a2, "customFPSTarget", *((float *)this + 276)); DS_Dictionary::setFloatForKey(a2, "scrollSensitivity", *((float *)this + 277)); v32 = *((char **)this + 139); if ( (char *)this + 1120 != v32 ) { do { while ( v32[60] ) { v32 = (char *)std::__tree_next *>(v32); if ( v6 == v32 ) goto LABEL_10; } snprintf(s, 0x20u, "ws_%d_k", v7); DS_Dictionary::setIntegerForKey(a2, s, *((_DWORD *)v32 + 7)); snprintf(s, 0x20u, "ws_%d_cx", v7); DS_Dictionary::setFloatForKey(a2, s, *((float *)v32 + 8)); snprintf(s, 0x20u, "ws_%d_cy", v7); DS_Dictionary::setFloatForKey(a2, s, *((float *)v32 + 9)); snprintf(s, 0x20u, "ws_%d_w", v7); DS_Dictionary::setFloatForKey(a2, s, *((float *)v32 + 10)); snprintf(s, 0x20u, "ws_%d_h", v7); DS_Dictionary::setFloatForKey(a2, s, *((float *)v32 + 11)); snprintf(s, 0x20u, "ws_%d_s", v7); DS_Dictionary::setFloatForKey(a2, s, *((float *)v32 + 12)); snprintf(s, 0x20u, "ws_%d_so", v7); DS_Dictionary::setFloatForKey(a2, s, *((float *)v32 + 13)); v33 = v7++; snprintf(s, 0x20u, "ws_%d_v", v33); DS_Dictionary::setIntegerForKey(a2, s, *((_DWORD *)v32 + 14)); v32 = (char *)std::__tree_next *>(v32); } while ( v6 != v32 ); } LABEL_10: DS_Dictionary::setIntegerForKey(a2, "winStateCount", v7); DS_Dictionary::setIntegerForKey(a2, "customMenuSongID", *((_DWORD *)this + 285)); DS_Dictionary::setIntegerForKey(a2, "customPracticeSongID", *((_DWORD *)this + 286)); DS_Dictionary::setIntegerForKey(a2, "idNameSortMode", *((_DWORD *)this + 287)); DS_Dictionary::setIntegerForKey(a2, "newsLastReadID", *((_DWORD *)this + 288)); GameManager::dpadConfigToString((__int64)this + 1316, &v56); DS_Dictionary::setStringForKey(a2, "dpad01", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); GameManager::dpadConfigToString((__int64)this + 1356, &v56); DS_Dictionary::setStringForKey(a2, "dpad02", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); GameManager::dpadConfigToString((__int64)this + 1396, &v56); DS_Dictionary::setStringForKey(a2, "dpad03", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); GameManager::dpadConfigToString((__int64)this + 1436, &v56); DS_Dictionary::setStringForKey(a2, "dpad04", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); GameManager::dpadConfigToString((__int64)this + 1476, &v56); DS_Dictionary::setStringForKey(a2, "dpad05", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); v34 = (char *)this + 1521; if ( (*((_BYTE *)this + 1520) & 1) != 0 ) v34 = *((const char **)this + 192); v49 = (char *)v34; v56 = 0; v57 = 0; v58 = nullptr; v35 = strlen(v34); std::string::__init(&v56, v49, v35); DS_Dictionary::setStringForKey(a2, "dpadLayout01", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); v36 = (char *)this + 1545; if ( (*((_BYTE *)this + 1544) & 1) != 0 ) v36 = *((const char **)this + 195); v50 = (char *)v36; v56 = 0; v57 = 0; v58 = nullptr; v37 = strlen(v36); std::string::__init(&v56, v50, v37); DS_Dictionary::setStringForKey(a2, "dpadLayout02", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); v38 = (char *)this + 1569; if ( (*((_BYTE *)this + 1568) & 1) != 0 ) v38 = *((const char **)this + 198); v51 = (char *)v38; v56 = 0; v57 = 0; v58 = nullptr; v39 = strlen(v38); std::string::__init(&v56, v51, v39); DS_Dictionary::setStringForKey(a2, "dpadLayout03", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); v40 = (char *)this + 1593; if ( (*((_BYTE *)this + 1592) & 1) != 0 ) v40 = *((const char **)this + 201); v52 = (char *)v40; v56 = 0; v57 = 0; v58 = nullptr; v41 = strlen(v40); std::string::__init(&v56, v52, v41); DS_Dictionary::setStringForKey(a2, "dpadLayoutDual01", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); v42 = (char *)this + 1617; if ( (*((_BYTE *)this + 1616) & 1) != 0 ) v42 = *((const char **)this + 204); v53 = (char *)v42; v56 = 0; v57 = 0; v58 = nullptr; v43 = strlen(v42); std::string::__init(&v56, v53, v43); DS_Dictionary::setStringForKey(a2, "dpadLayoutDual02", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); v44 = (char *)this + 1641; if ( (*((_BYTE *)this + 1640) & 1) != 0 ) v44 = *((const char **)this + 207); v54 = (char *)v44; v56 = 0; v57 = 0; v58 = nullptr; v45 = strlen(v44); std::string::__init(&v56, v54, v45); DS_Dictionary::setStringForKey(a2, "dpadLayoutDual03", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); v46 = (char *)this + 1665; if ( (*((_BYTE *)this + 1664) & 1) != 0 ) v46 = *((const char **)this + 210); v55 = (char *)v46; v56 = 0; v57 = 0; v58 = nullptr; v47 = strlen(v46); std::string::__init(&v56, v55, v47); DS_Dictionary::setStringForKey(a2, "recentEmotes", &v56); if ( (v56 & 1) != 0 ) operator delete(v58); DS_Dictionary::setFloatForKey(a2, "practiceOpacity", *((float *)this + 428)); DS_Dictionary::setFloatForKey(a2, "practicePosX", *((float *)this + 426)); DS_Dictionary::setFloatForKey(a2, "practicePosY", *((float *)this + 427)); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source