// // SongInfoObject::encodeWithCoder from 0x826620 to 0x8267dc (444 bytes) // // 2 xrefs: // > @ 0x45a50 // > @ 0x1189c40 // // 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 SongInfoObject::encodeWithCoder(SongInfoObject *a1, DS_Dictionary *a2) { _BOOL4 m_quickSave; // w21 std::string *p_m_youtubeChannel; // x2 std::string *p_m_downloadLinkOverride; // x2 m_quickSave = GameManager::sharedState()->m_quickSave; DS_Dictionary::setIntegerForKey(a2, "kCEK", 6); DS_Dictionary::setIntegerForKey(a2, "1", a1->m_songID); DS_Dictionary::setStringForKey(a2, &byte_F78BA8, &a1->m_songName); DS_Dictionary::setStringForKey(a2, &byte_F2CA20, &a1->m_artistName); DS_Dictionary::setIntegerForKey(a2, "3", a1->m_artistID); DS_Dictionary::setFloatForKey(a2, "5", a1->m_fileSize); DS_Dictionary::setIntegerForKey(a2, "11", a1->m_nongType); DS_Dictionary::setBoolForKey(a2, "13", a1->m_isNew); DS_Dictionary::setIntegerForKey(a2, "14", a1->m_libraryOrder); if ( !m_quickSave ) { if ( *((_QWORD *)a1->m_youtubeVideo.m_data.m_data - 3) ) { DS_Dictionary::setStringForKey(a2, "6", &a1->m_youtubeVideo); p_m_youtubeChannel = &a1->m_youtubeChannel; if ( !*((_QWORD *)a1->m_youtubeChannel.m_data.m_data - 3) ) { LABEL_4: p_m_downloadLinkOverride = &a1->m_downloadLinkOverride; if ( !*((_QWORD *)a1->m_downloadLinkOverride.m_data.m_data - 3) ) { LABEL_5: DS_Dictionary::setStringForKey(a2, "10", &a1->m_songUrl); DS_Dictionary::setStringForKey(a2, "12", &a1->m_extraArtists); DS_Dictionary::setStringForKey(a2, "15", &a1->m_extraArtistNames); goto LABEL_6; } LABEL_7: DS_Dictionary::setStringForKey(a2, "16", p_m_downloadLinkOverride); goto LABEL_5; } } else { p_m_youtubeChannel = &a1->m_youtubeChannel; if ( !*((_QWORD *)a1->m_youtubeChannel.m_data.m_data - 3) ) goto LABEL_4; } DS_Dictionary::setStringForKey(a2, "7", p_m_youtubeChannel); p_m_downloadLinkOverride = &a1->m_downloadLinkOverride; if ( !*((_QWORD *)a1->m_downloadLinkOverride.m_data.m_data - 3) ) goto LABEL_5; goto LABEL_7; } LABEL_6: DS_Dictionary::setIntegerForKey(a2, "9", a1->m_priority); }
GD Web Decomp Icon

GD Web Decomp

Raw Source