aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-05-17 14:23:38 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-05-17 14:23:38 +0000
commit1858dadeadf071bbc3eb16ae835fc9bd95440eab (patch)
tree78cae393a0bbd2b2a7323c1ef1626fb7ed032b98 /Game/Code
parent8c035bb950519a86c90f64aab7c58aa98089569c (diff)
downloadusdx-1858dadeadf071bbc3eb16ae835fc9bd95440eab.tar.gz
usdx-1858dadeadf071bbc3eb16ae835fc9bd95440eab.tar.xz
usdx-1858dadeadf071bbc3eb16ae835fc9bd95440eab.zip
Video Tag will now only be read when the VideoFile exists.
-> Better usability of VideoIcon git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@214 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Classes/UFiles.pas2
-rw-r--r--Game/Code/Screens/UScreenStatMain.pas2
2 files changed, 2 insertions, 2 deletions
diff --git a/Game/Code/Classes/UFiles.pas b/Game/Code/Classes/UFiles.pas
index 912a476d..aa336233 100644
--- a/Game/Code/Classes/UFiles.pas
+++ b/Game/Code/Classes/UFiles.pas
@@ -239,7 +239,7 @@ begin
end
// Video File
- else if (Identifier = 'VIDEO') then
+ else if (Identifier = 'VIDEO') AND (FileExists(Song.Path + Value)) then
begin
Song.Video := Value;
end
diff --git a/Game/Code/Screens/UScreenStatMain.pas b/Game/Code/Screens/UScreenStatMain.pas
index 219ccd57..54457a6e 100644
--- a/Game/Code/Screens/UScreenStatMain.pas
+++ b/Game/Code/Screens/UScreenStatMain.pas
@@ -109,7 +109,7 @@ begin
//Set Songs with Vid
SongswithVid := 0;
For I := 0 to high(Songs.Song) do
- if (Songs.Song[I].Video <> '') AND FileExists(Songs.Song[I].Path + Songs.Song[I].Video) then
+ if (Songs.Song[I].Video <> '') then
Inc(SongswithVid);
end;