Skip to content

Commit

Permalink
Don't always generate full paths on startup (use cache)
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram authored Mar 4, 2019
1 parent 993dc77 commit 6a5ae27
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/Song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,23 +1025,6 @@ Song::TidyUpData(bool from_cache, bool /* duringCache */)
#undef CLEAR_NOT_HAS
}

// need generate these independent of caching cuz im dum
m_sMusicPath = GetSongAssetPath(m_sMusicFile, m_sSongDir);
m_PreviewPath = GetSongAssetPath(m_PreviewFile, m_sSongDir);
if (m_PreviewPath.empty())
m_PreviewPath = m_sMusicPath;
FOREACH_ENUM(InstrumentTrack, it)
m_sInstrumentTrackPath[it] =
GetSongAssetPath(m_sInstrumentTrackFile[it], m_sSongDir);
m_sBannerPath = GetSongAssetPath(m_sBannerFile, m_sSongDir);
m_sJacketPath = GetSongAssetPath(m_sJacketFile, m_sSongDir);
m_sCDPath = GetSongAssetPath(m_sCDFile, m_sSongDir);
m_sDiscPath = GetSongAssetPath(m_sDiscFile, m_sSongDir);
m_sLyricsPath = GetSongAssetPath(m_sLyricsFile, m_sSongDir);
m_sBackgroundPath = GetSongAssetPath(m_sBackgroundFile, m_sSongDir);
m_sCDTitlePath = GetSongAssetPath(m_sCDTitleFile, m_sSongDir);
m_sPreviewVidPath = GetSongAssetPath(m_sPreviewVidFile, m_sSongDir);

string scoot = m_sMainTitle;
string mcgoot = m_sSubTitle;

Expand Down

0 comments on commit 6a5ae27

Please sign in to comment.