aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-04-05 09:57:10 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-04-05 09:57:10 +0000
commit30f9cbaa9b36454e68cba0aabe28c42bf7ebfd08 (patch)
tree567de1e0ccb731c4399006aaabc069a8ca938940 /Game
parent35add55a2ecdcede5542e5ee86db06f0b6b4a3de (diff)
downloadusdx-30f9cbaa9b36454e68cba0aabe28c42bf7ebfd08.tar.gz
usdx-30f9cbaa9b36454e68cba0aabe28c42bf7ebfd08.tar.xz
usdx-30f9cbaa9b36454e68cba0aabe28c42bf7ebfd08.zip
Compilation on Linux fixed
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1003 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UCovers.pas22
1 files changed, 18 insertions, 4 deletions
diff --git a/Game/Code/Classes/UCovers.pas b/Game/Code/Classes/UCovers.pas
index d3665854..3bd9e183 100644
--- a/Game/Code/Classes/UCovers.pas
+++ b/Game/Code/Classes/UCovers.pas
@@ -36,8 +36,7 @@ uses OpenGL12,
{$IFNDEF FPC}
Graphics,
{$ENDIF}
- UThemes,
- UTexture;
+ UThemes;
const
cCC_CoverW = 128;
@@ -140,6 +139,7 @@ implementation
uses UMain,
// UFiles,
ULog,
+ UTexture,
DateUtils;
constructor TCovers.Create(const Filename: String);
@@ -450,10 +450,10 @@ begin
begin
If (Index[I].FileIndex.DataStart <> 0) AND
{$IFDEF MSWINDOWS}
- (Uppercase(Index[I].Filename) = Filename) then
+ (Uppercase(Index[I].Filename) = Filename)
{$ELSE}
(Index[I].Filename = Filename)
- {$ENDIF}
+ {$ENDIF} then
begin
Result := I;
Exit;
@@ -512,8 +512,22 @@ begin
end;
Procedure TCovers.LoadTextures;
+var
+ I: Integer;
+
+ Function LoadCover: Integer;
+ begin
+
+ end;
begin
+ //Texture.SetCoverSize(cCC_CoverW, cCC_CoverH);
+
+ For I := 0 to HighestID do
+ begin //Load all the Covers
+ {Index[I].TexID
+ Index[I].FileIndex.}
+ end;
end;
end.