aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/USong.pas
diff options
context:
space:
mode:
authorbasisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c>2015-09-12 00:48:54 +0000
committerbasisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c>2015-09-12 00:48:54 +0000
commit58df1656afc2ca59a81d848a7bec845ce7b674a0 (patch)
tree0d681989868e773766670e222795f60f2996d0f0 /src/base/USong.pas
parent677b57732337e906492afc11ba3e5a23b84eef85 (diff)
downloadusdx-58df1656afc2ca59a81d848a7bec845ce7b674a0.tar.gz
usdx-58df1656afc2ca59a81d848a7bec845ce7b674a0.tar.xz
usdx-58df1656afc2ca59a81d848a7bec845ce7b674a0.zip
* log if the audio file which is specified in the song .txt does not exist or is not accessible
* more aggressively try to write changes to text files on windows (also write if file is already opened somewhere). This allows modifying song .txt files on windows 7/8/10 even when VirtualStore is active for the user. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3135 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base/USong.pas')
-rw-r--r--src/base/USong.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/USong.pas b/src/base/USong.pas
index bff39a29..041f3853 100644
--- a/src/base/USong.pas
+++ b/src/base/USong.pas
@@ -989,6 +989,10 @@ begin
//Add Mp3 Flag to Done
Done := Done or 4;
+ end
+ else
+ begin
+ Log.LogError('Can''t find audio file in song: ' + DecodeStringUTF8(FullFileName, Encoding));
end;
end