aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/USkins.pas
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-13 12:08:19 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-13 12:08:19 +0000
commit0c8777a5798a39dee058cbdd713bd095bff8c9a0 (patch)
treed825d366eed3ddb15de8cb21e62be605aab70c44 /Game/Code/Classes/USkins.pas
parent78c0c01f78b649bdc8e74c7c14d07590070a8765 (diff)
downloadusdx-0c8777a5798a39dee058cbdd713bd095bff8c9a0.tar.gz
usdx-0c8777a5798a39dee058cbdd713bd095bff8c9a0.tar.xz
usdx-0c8777a5798a39dee058cbdd713bd095bff8c9a0.zip
Fixed popUpBg image not displaying in game.
this was not so much a problem with loading this type of texture, more so it was the fact that the file name had incorrect capitialization in the theme.ini file causing the png file to be not found on *nix systems. Ive implemented a workaround that will solve this without the theme files needing to be changed. so the game is now tolerant of themes having incorrect case in the filenames. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@849 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes/USkins.pas')
-rw-r--r--Game/Code/Classes/USkins.pas8
1 files changed, 6 insertions, 2 deletions
diff --git a/Game/Code/Classes/USkins.pas b/Game/Code/Classes/USkins.pas
index 6a022153..e6056ee4 100644
--- a/Game/Code/Classes/USkins.pas
+++ b/Game/Code/Classes/USkins.pas
@@ -143,8 +143,12 @@ begin
end;
end;
- Log.LogStatus('', '-----------------------------------------');
- Log.LogStatus(TextureName+' - '+ Result, 'TSkin.GetTextureFileName');
+ if ( TextureName <> '' ) AND
+ ( Result <> '' ) THEN
+ begin
+ Log.LogError('', '-----------------------------------------');
+ Log.LogError(TextureName+' - '+ Result, 'TSkin.GetTextureFileName');
+ end;
{ Result := SkinPath + 'Bar.jpg';
if TextureName = 'Ball' then Result := SkinPath + 'Ball.bmp';