// // SongInfoObject::encodeWithCoder from 0x100597d60 to 0x100597f54 (500 bytes) // // 1 xrefs: // > @ 0x100970528 // // 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; // r15 unsigned int sizex2; // eax unsigned int v4; // eax unsigned int v5; // eax 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((__int64)a2, (__int64)"2", (__int64)&a1->m_songName); DS_Dictionary::setStringForKey_1((__int64)a2, (__int64)"4", (__int64)&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 ) { sizex2 = a1->m_youtubeVideo.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) { if ( !a1->m_youtubeVideo.m_data.m_long.size ) goto LABEL_7; } else if ( !(sizex2 >> 1) ) { LABEL_7: v4 = a1->m_youtubeChannel.m_data.m_short.sizex2; if ( (v4 & 1) != 0 ) { if ( !a1->m_youtubeChannel.m_data.m_long.size ) goto LABEL_12; } else if ( !(v4 >> 1) ) { LABEL_12: v5 = a1->m_downloadLinkOverride.m_data.m_short.sizex2; if ( (v5 & 1) != 0 ) { if ( !a1->m_downloadLinkOverride.m_data.m_long.size ) { LABEL_17: DS_Dictionary::setStringForKey_1((__int64)a2, (__int64)"10", (__int64)&a1->m_songUrl); DS_Dictionary::setStringForKey_1((__int64)a2, (__int64)"12", (__int64)&a1->m_extraArtists); DS_Dictionary::setStringForKey_1((__int64)a2, (__int64)"15", (__int64)&a1->m_extraArtistNames); goto LABEL_18; } } else if ( !(v5 >> 1) ) { goto LABEL_17; } DS_Dictionary::setStringForKey_1((__int64)a2, (__int64)"16", (__int64)&a1->m_downloadLinkOverride); goto LABEL_17; } DS_Dictionary::setStringForKey_1((__int64)a2, (__int64)"7", (__int64)&a1->m_youtubeChannel); goto LABEL_12; } DS_Dictionary::setStringForKey_1((__int64)a2, (__int64)"6", (__int64)&a1->m_youtubeVideo); goto LABEL_7; } LABEL_18: DS_Dictionary::setIntegerForKey_1(a2, "9", a1->m_priority); }
GD Web Decomp Icon

GD Web Decomp

Raw Source