diff options
author | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-08-15 16:44:17 +0000 |
---|---|---|
committer | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-08-15 16:44:17 +0000 |
commit | 22581815288ed2462063a8ac36e3818f95adfda2 (patch) | |
tree | 009f7178ec3502f5f38126fdb8ce84eade34f19f /Game/Code/Screens/UScreenMain.pas | |
parent | b313d7ec423dc118e7195e2f5873d9cbfa2d2411 (diff) | |
download | usdx-22581815288ed2462063a8ac36e3818f95adfda2.tar.gz usdx-22581815288ed2462063a8ac36e3818f95adfda2.tar.xz usdx-22581815288ed2462063a8ac36e3818f95adfda2.zip |
added check popup at startup if LoadFaultySongs=Off and if there are some defective songs. the user has now the ability to load them anyway.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2611 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Screens/UScreenMain.pas')
-rw-r--r-- | Game/Code/Screens/UScreenMain.pas | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Game/Code/Screens/UScreenMain.pas b/Game/Code/Screens/UScreenMain.pas index 156901e2..b92e59a2 100644 --- a/Game/Code/Screens/UScreenMain.pas +++ b/Game/Code/Screens/UScreenMain.pas @@ -261,7 +261,7 @@ begin AddButton(Theme.Main.ButtonExit);
Interaction := 0;
- ShowNumErrors := false;
+ ShowNumErrors := true;
end;
procedure TScreenMain.onShow;
@@ -274,10 +274,9 @@ begin if not Help.SetHelpID(ID) then
Log.LogError('No Entry for Help-ID ' + ID + ' (ScreenMain)');
- if ShowNumErrors then
+ if (Ini.LoadFaultySongs=0) and ShowNumErrors and (Songs.NumFaultySongs>0) then
begin
- ShowNumErrors := false;
- ScreenPopupError.ShowPopup(IntToStr(Log.NumErrors) + ' errors on loading, see Error.log for details');
+ ScreenPopupCheck.ShowPopup(Format(Language.Translate('MSG_ERROR_SONGLOADING'), [Songs.NumFaultySongs]));
end;
end;
|