diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-12-13 11:27:28 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-12-13 11:27:28 +0000 |
commit | bc2e9999248beb57e85d3ae9d0f154eb1c3c1c52 (patch) | |
tree | afc534be640e2feb59ba09edb7afe0ced1c5f49a /src/base | |
parent | 9902c756e8a15bb4582cdc43bb94378f29de0999 (diff) | |
download | usdx-bc2e9999248beb57e85d3ae9d0f154eb1c3c1c52.tar.gz usdx-bc2e9999248beb57e85d3ae9d0f154eb1c3c1c52.tar.xz usdx-bc2e9999248beb57e85d3ae9d0f154eb1c3c1c52.zip |
added a note concerning song parser
needs to be fixed before release
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2025 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/USong.pas | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/base/USong.pas b/src/base/USong.pas index 151ad73d..fccf2757 100644 --- a/src/base/USong.pas +++ b/src/base/USong.pas @@ -380,6 +380,14 @@ begin Str := ParseLyricStringParam(Line, LinePos); if (Length(Str) <> 1) then begin + { to-do : decide what to do here + usdx < 1.1 does not nead a whitespace after a char param + so we may just write a warning to error.log and use the + first non whitespace character instead of raising an + exception that causes the song not to load. So the more + error resistant code is: + LinePos := OldLinePos + 1; + // raise EUSDXParseException.Create('Character expected'); } LinePos := OldLinePos; raise EUSDXParseException.Create('Character expected'); end; |