// // SongInfoObject::encodeWithCoder from 0x10015bb98 to 0x10015bd38 (416 bytes) // // 1 xrefs: // > @ 0x10079ac68 // // 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 __fastcall SongInfoObject::encodeWithCoder(SongInfoObject *a1, DS_Dictionary *a2) { bool m_quickSave; // w21 std::size_t size; // x8 std::size_t v6; // x8 std::size_t v7; // x8 m_quickSave = GameManager::sharedState()->m_quickSave; DS_Dictionary::setIntegerForKey_1(a2, "kCEK", 6); DS_Dictionary::setIntegerForKey_1(a2, "1", a1->m_songID); DS_Dictionary::setStringForKey_1(a2, "2", &a1->m_songName); DS_Dictionary::setStringForKey_1(a2, "4", &a1->m_artistName); DS_Dictionary::setIntegerForKey_1(a2, "3", a1->m_artistID); DS_Dictionary::setFloatForKey_1(a2, "5", a1->m_fileSize); DS_Dictionary::setIntegerForKey_1(a2, "11", a1->m_nongType); DS_Dictionary::setBoolForKey_1(a2, "13", a1->m_isNew); DS_Dictionary::setIntegerForKey_1(a2, "14", a1->m_libraryOrder); if ( !m_quickSave ) { size = a1->m_youtubeVideo.m_data.m_short.shortStorage.__elems_[22]; if ( (size & 0x8000000000000000LL) != 0 ) size = a1->m_youtubeVideo.m_data.m_long.size; if ( size ) DS_Dictionary::setStringForKey_1(a2, "6", &a1->m_youtubeVideo); v6 = a1->m_youtubeChannel.m_data.m_short.shortStorage.__elems_[22]; if ( (v6 & 0x8000000000000000LL) != 0 ) v6 = a1->m_youtubeChannel.m_data.m_long.size; if ( v6 ) DS_Dictionary::setStringForKey_1(a2, "7", &a1->m_youtubeChannel); v7 = a1->m_downloadLinkOverride.m_data.m_short.shortStorage.__elems_[22]; if ( (v7 & 0x8000000000000000LL) != 0 ) v7 = a1->m_downloadLinkOverride.m_data.m_long.size; if ( v7 ) DS_Dictionary::setStringForKey_1(a2, "16", &a1->m_downloadLinkOverride); DS_Dictionary::setStringForKey_1(a2, "10", &a1->m_songUrl); DS_Dictionary::setStringForKey_1(a2, "12", &a1->m_extraArtists); DS_Dictionary::setStringForKey_1(a2, "15", &a1->m_extraArtistNames); } DS_Dictionary::setIntegerForKey_1(a2, "9", a1->m_priority); }
GD Web Decomp Icon

GD Web Decomp

Raw Source