// // GameManager::encodeDataTo from 0x329aa4 to 0x32a014 (1392 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 GameManager::encodeDataTo(GameManager *a1, DS_Dictionary *a2) { FMODAudioEngine *v4; // r0 float BackgroundMusicVolume; // r0 FMODAudioEngine *v6; // r0 float EffectsVolume; // r0 FMODAudioEngine *v8; // r0 AchievementManager *v9; // r0 GameLevelManager *v10; // r0 GameStatsManager *v11; // r0 MusicDownloadManager *v12; // r0 GJAccountManager *v13; // r0 GJMultiplayerManager *v14; // r0 KeybindingsManager *v15; // r0 std::string v16; // [sp+8h] [bp-8h] BYREF DS_Dictionary::setDictForKey(a2, "valueKeeper", a1->m_valueKeeper); DS_Dictionary::setDictForKey(a2, "unlockValueKeeper", a1->m_unlockValueKeeper); DS_Dictionary::setDictForKey(a2, "customObjectDict", a1->m_customObjectDict); v4 = FMODAudioEngine::sharedEngine(); BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v4); DS_Dictionary::setFloatForKey(a2, "bgVolume", BackgroundMusicVolume); v6 = FMODAudioEngine::sharedEngine(); EffectsVolume = FMODAudioEngine::getEffectsVolume(v6); DS_Dictionary::setFloatForKey(a2, "sfxVolume", EffectsVolume); v8 = FMODAudioEngine::sharedEngine(); DS_Dictionary::setIntegerForKey(a2, "timeOffset", v8->m_musicOffset); DS_Dictionary::setStringForKey(a2, "playerUDID", &a1->m_playerUDID); DS_Dictionary::setStringForKey(a2, "playerName", &a1->m_playerName); DS_Dictionary::setIntegerForKey(a2, "playerUserID", a1->m_playerUserID.random - a1->m_playerUserID.seed); DS_Dictionary::setIntegerForKey(a2, "playerFrame", a1->m_playerFrame.random - a1->m_playerFrame.seed); DS_Dictionary::setIntegerForKey(a2, "playerShip", a1->m_playerShip.random - a1->m_playerShip.seed); DS_Dictionary::setIntegerForKey(a2, "playerBall", a1->m_playerBall.random - a1->m_playerBall.seed); DS_Dictionary::setIntegerForKey(a2, "playerBird", a1->m_playerBird.random - a1->m_playerBird.seed); DS_Dictionary::setIntegerForKey(a2, "playerDart", a1->m_playerDart.random - a1->m_playerDart.seed); DS_Dictionary::setIntegerForKey(a2, "playerRobot", a1->m_playerRobot.random - a1->m_playerRobot.seed); DS_Dictionary::setIntegerForKey(a2, "playerSpider", a1->m_playerSpider.random - a1->m_playerSpider.seed); DS_Dictionary::setIntegerForKey(a2, "playerSwing", a1->m_playerSwing.random - a1->m_playerSwing.seed); DS_Dictionary::setIntegerForKey(a2, "playerColor", a1->m_playerColor.random - a1->m_playerColor.seed); DS_Dictionary::setIntegerForKey(a2, "playerColor2", a1->m_playerColor2.random - a1->m_playerColor2.seed); DS_Dictionary::setIntegerForKey(a2, "playerColor3", a1->m_playerGlowColor.random - a1->m_playerGlowColor.seed); DS_Dictionary::setIntegerForKey(a2, "playerStreak", a1->m_playerStreak.random - a1->m_playerStreak.seed); DS_Dictionary::setIntegerForKey(a2, "playerShipStreak", a1->m_playerShipFire.random - a1->m_playerShipFire.seed); DS_Dictionary::setIntegerForKey( a2, "playerDeathEffect", a1->m_playerDeathEffect.random - a1->m_playerDeathEffect.seed); DS_Dictionary::setIntegerForKey(a2, "playerJetpack", a1->m_playerJetpack.random - a1->m_playerJetpack.seed); DS_Dictionary::setIntegerForKey(a2, "playerIconType", a1->m_playerIconType); DS_Dictionary::setBoolForKey(a2, "playerGlow", a1->m_playerGlow); DS_Dictionary::setIntegerForKey(a2, "secretNumber", a1->m_secretNumber.seed - a1->m_secretNumber.random); DS_Dictionary::setIntegerForKey(a2, "hasRP", a1->m_hasRP.random - a1->m_hasRP.seed); DS_Dictionary::setBoolForKey(a2, "hasDRP", a1->m_hasDRP); v9 = AchievementManager::sharedState(); AchievementManager::encodeDataTo(v9, a2); v10 = GameLevelManager::sharedState(); GameLevelManager::encodeDataTo(v10, a2); v11 = GameStatsManager::sharedState(); GameStatsManager::encodeDataTo(v11, a2); v12 = MusicDownloadManager::sharedState(); MusicDownloadManager::encodeDataTo(v12, a2); v13 = GJAccountManager::sharedState(); GJAccountManager::encodeDataTo(v13, a2); v14 = GJMultiplayerManager::sharedState(); GJMultiplayerManager::encodeDataTo(v14, a2); v15 = KeybindingsManager::sharedState(); KeybindingsManager::encodeDataTo(v15, a2); DS_Dictionary::setBoolForKey(a2, "showSongMarkers", a1->m_showSongMarkers); DS_Dictionary::setBoolForKey(a2, "showBPMMarkers", a1->m_showBPMMarkers); DS_Dictionary::setBoolForKey(a2, "recordGameplay", a1->m_recordGameplay); DS_Dictionary::setBoolForKey(a2, "showProgressBar", a1->m_showProgressBar); DS_Dictionary::setBoolForKey(a2, "performanceMode", a1->m_performanceMode); DS_Dictionary::setBoolForKey(a2, "clickedGarage", a1->m_clickedGarage); DS_Dictionary::setBoolForKey(a2, "clickedEditor", a1->m_clickedEditor); DS_Dictionary::setBoolForKey(a2, "clickedName", a1->m_clickedName); DS_Dictionary::setBoolForKey(a2, "clickedPractice", a1->m_clickedPractice); DS_Dictionary::setBoolForKey(a2, "showedEditorGuide", a1->m_showedEditorGuide); DS_Dictionary::setBoolForKey(a2, "showedRateDiffDialog", a1->m_showedRateDiffDialog); DS_Dictionary::setBoolForKey(a2, "showedRateStarDialog", a1->m_showedRateStarDialog); DS_Dictionary::setBoolForKey(a2, "showedLowDetailDialog", a1->m_showedLowDetailDialog); DS_Dictionary::setIntegerForKey(a2, "bootups", a1->m_bootups); DS_Dictionary::setBoolForKey(a2, "hasRatedGame", a1->m_hasRatedGame); DS_Dictionary::setIntegerForKey(a2, "binaryVersion", 48); DS_Dictionary::setIntegerForKey(a2, "resolution", a1->m_resolution); DS_Dictionary::setIntegerForKey(a2, "texQuality", a1->m_texQuality); DS_Dictionary::setFloatForKey(a2, "customFPSTarget", a1->m_customFPSTarget); DS_Dictionary::setIntegerForKey(a2, "customMenuSongID", a1->m_customMenuSongID); DS_Dictionary::setIntegerForKey(a2, "customPracticeSongID", a1->m_customPracticeSongID); GameManager::dpadConfigToString((GameManager *)&v16, (UIButtonConfig *)a1, (int)&a1->m_dpad1); DS_Dictionary::setStringForKey(a2, "dpad01", &v16); sub_774008(&v16); GameManager::dpadConfigToString((GameManager *)&v16, (UIButtonConfig *)a1, (int)&a1->m_dpad2); DS_Dictionary::setStringForKey(a2, "dpad02", &v16); sub_774008(&v16); GameManager::dpadConfigToString((GameManager *)&v16, (UIButtonConfig *)a1, (int)&a1->m_dpad3); DS_Dictionary::setStringForKey(a2, "dpad03", &v16); sub_774008(&v16); GameManager::dpadConfigToString((GameManager *)&v16, (UIButtonConfig *)a1, (int)&a1->m_dpad4); DS_Dictionary::setStringForKey(a2, "dpad04", &v16); sub_774008(&v16); GameManager::dpadConfigToString((GameManager *)&v16, (UIButtonConfig *)a1, (int)&a1->m_dpad5); DS_Dictionary::setStringForKey(a2, "dpad05", &v16); sub_774008(&v16); sub_776584((int)&v16, (char *)a1->m_dpadLayout1.m_data.m_data); DS_Dictionary::setStringForKey(a2, "dpadLayout01", &v16); sub_774008(&v16); sub_776584((int)&v16, (char *)a1->m_dpadLayout2.m_data.m_data); DS_Dictionary::setStringForKey(a2, "dpadLayout02", &v16); sub_774008(&v16); sub_776584((int)&v16, (char *)a1->m_dpadLayout3.m_data.m_data); DS_Dictionary::setStringForKey(a2, "dpadLayout03", &v16); sub_774008(&v16); sub_776584((int)&v16, (char *)a1->m_dpadLayoutDual1.m_data.m_data); DS_Dictionary::setStringForKey(a2, "dpadLayoutDual01", &v16); sub_774008(&v16); sub_776584((int)&v16, (char *)a1->m_dpadLayoutDual2.m_data.m_data); DS_Dictionary::setStringForKey(a2, "dpadLayoutDual02", &v16); sub_774008(&v16); sub_776584((int)&v16, (char *)a1->m_dpadLayoutDual3.m_data.m_data); DS_Dictionary::setStringForKey(a2, "dpadLayoutDual03", &v16); sub_774008(&v16); DS_Dictionary::setFloatForKey(a2, "practiceOpacity", a1->m_practiceOpacity); DS_Dictionary::setFloatForKey(a2, "practicePosX", a1->m_practicePos.x); DS_Dictionary::setFloatForKey(a2, "practicePosY", a1->m_practicePos.y); }
GD Web Decomp Icon

GD Web Decomp

Raw Source