From 6a5ae27490db27983ef786d3bc996ca371860047 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 3 Mar 2019 22:19:16 -0300 Subject: [PATCH] Don't always generate full paths on startup (use cache) --- src/Song.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Song.cpp b/src/Song.cpp index 31a1b35f42..22f0532256 100644 --- a/src/Song.cpp +++ b/src/Song.cpp @@ -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;