aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens/UScreenSing.pas
diff options
context:
space:
mode:
authorf1fth_freed0m <f1fth_freed0m@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-03-27 22:30:01 +0000
committerf1fth_freed0m <f1fth_freed0m@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-03-27 22:30:01 +0000
commitf03ed07bc00ddc28a77f4e81d25e7d3ee596e06d (patch)
treee635c761efeee38928cb2d6089c4d4ba3054dc68 /Game/Code/Screens/UScreenSing.pas
parentbbf6784e26b5f94c87c9deedb75711948d937f46 (diff)
downloadusdx-f03ed07bc00ddc28a77f4e81d25e7d3ee596e06d.tar.gz
usdx-f03ed07bc00ddc28a77f4e81d25e7d3ee596e06d.tar.xz
usdx-f03ed07bc00ddc28a77f4e81d25e7d3ee596e06d.zip
USDX is now able to load SingStar XML Songfiles using Whitesharks XML2US Parser
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@974 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Screens/UScreenSing.pas5
1 files changed, 4 insertions, 1 deletions
diff --git a/Game/Code/Screens/UScreenSing.pas b/Game/Code/Screens/UScreenSing.pas
index d75a3171..859aeb52 100644
--- a/Game/Code/Screens/UScreenSing.pas
+++ b/Game/Code/Screens/UScreenSing.pas
@@ -462,7 +462,10 @@ begin
// FIXME: bad style, put the try-except into LoadSong() and not here
try
- success := CurrentSong.LoadSong();
+ //Check if File is XML
+ if copy(CurrentSong.FileName,length(CurrentSong.FileName)-3,4) = '.xml'
+ then success := CurrentSong.LoadXMLSong()
+ else success := CurrentSong.LoadSong();
except
success := false;
end;