diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2014-11-22 21:56:46 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2014-11-22 21:56:46 +0000 |
commit | f81109f575a1e4e36d9c024f90265e01dcf2c354 (patch) | |
tree | 25df5ae032991080d4c9bcaa0ab1220969eb9344 /src/base | |
parent | b6fdd762f9d13f316cd1237d7340a8b38fba796a (diff) | |
download | usdx-f81109f575a1e4e36d9c024f90265e01dcf2c354.tar.gz usdx-f81109f575a1e4e36d9c024f90265e01dcf2c354.tar.xz usdx-f81109f575a1e4e36d9c024f90265e01dcf2c354.zip |
Call LoadSong() only before playing the song. This speeds up the initial load because not all song contents have to be parsed on startup. Thanks to rudi_s.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3100 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | src/base/USong.pas | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/base/USong.pas b/src/base/USong.pas index 4f35d774..a8581ebd 100644 --- a/src/base/USong.pas +++ b/src/base/USong.pas @@ -623,7 +623,9 @@ begin Lines[Count].Line[High(Lines[Count].Line)].LastLine := true; end; - Result := true; + FindRefrain(); + + Result := true; end; //Load XML Song @@ -1581,10 +1583,6 @@ begin //Load Song for Medley Tags CurrentSong := self; - Result := Result and LoadSong(); - - if Result then - Self.FindRefrain(); finally SongFile.Free; end; |