Skip to content

Commit

Permalink
v2.7 (01.09.2022)
Browse files Browse the repository at this point in the history
  Fixed missing DLL error on opening PTX files associated with PTXTool in Explorer
  • Loading branch information
Kromster80 committed Sep 1, 2022
1 parent 039839d commit 94dfaf0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
4 changes: 3 additions & 1 deletion WR PTXTool/Readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
------------------------------------------------------
PTX Tool 2.6
PTX Tool 2.7
------------------------------------------------------

Description:
Expand All @@ -22,6 +22,8 @@ You can use fewer MipMap levels to get sharper picture in game.
You can use uncompressed PTX images to get better image quality in game.

Changelog:
v2.7 (01.09.2022)
Fixed missing DLL error on opening PTX files associated with PTXTool in Explorer
v2.6 (02.08.2022)
Restored Import BMP Image function
v2.5 (11.07.2022)
Expand Down
2 changes: 1 addition & 1 deletion WR PTXTool/WR_DXTCompressorColor.pas
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ constructor TWRDXTCompressorColor.Create;
inherited;

// Load ourselves to be able to show a warning message and work without the DLL
if FileExists('squish.dll') then
if FileExists(ExtractFilePath(ParamStr(0)) + 'squish.dll') then
begin
fDllLib := LoadLibrary('squish.dll');
if fDllLib <> 0 then
Expand Down
27 changes: 14 additions & 13 deletions WR PTXTool/WR_PTX1.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ object fmPTXTool: TfmPTXTool
object gbInfo: TGroupBox
Left = 208
Top = 7
Width = 305
Width = 329
Height = 81
Caption = ' File Name '
TabOrder = 3
Expand All @@ -111,21 +111,21 @@ object fmPTXTool: TfmPTXTool
Caption = 'MipMaps:'
end
object Label10: TLabel
Left = 144
Left = 176
Top = 18
Width = 53
Height = 13
Caption = 'Fade color:'
end
object Label2: TLabel
Left = 198
Left = 230
Top = 53
Width = 87
Height = 13
Caption = 'Set MipMap levels'
end
object Label7: TLabel
Left = 144
Left = 176
Top = 34
Width = 27
Height = 13
Expand Down Expand Up @@ -153,21 +153,21 @@ object fmPTXTool: TfmPTXTool
Caption = '<<>>'
end
object lbFadeColor: TLabel
Left = 200
Left = 232
Top = 18
Width = 24
Height = 13
Caption = '<<>>'
end
object lbRMS: TLabel
Left = 174
Left = 206
Top = 34
Width = 24
Height = 13
Caption = '<<>>'
end
object seMipMapCount: TSpinEdit
Left = 144
Left = 176
Top = 50
Width = 49
Height = 22
Expand All @@ -184,7 +184,7 @@ object fmPTXTool: TfmPTXTool
OnChange = seMipMapCountChange
end
object Panel1: TPanel
Left = 136
Left = 168
Top = 16
Width = 2
Height = 57
Expand Down Expand Up @@ -234,18 +234,19 @@ object fmPTXTool: TfmPTXTool
OnClick = btnSaveMipMapClick
end
object cbAllowNPOT: TCheckBox
Left = 520
Left = 544
Top = 52
Width = 209
Height = 17
Width = 161
Height = 29
Caption = 'Allow non-POT images (no use in-game)'
TabOrder = 5
WordWrap = True
OnClick = cbAllowNPOTClick
end
object rgCompressionQuality: TRadioGroup
Left = 520
Left = 544
Top = 8
Width = 201
Width = 161
Height = 41
Caption = ' Compression quality '
Columns = 2
Expand Down
2 changes: 1 addition & 1 deletion WR PTXTool/WR_PTX1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ TfmPTXTool = class(TForm)

const
TOOL_NAME = 'PTXTool';
TOOL_VERSION = 'Version 2.6';
TOOL_VERSION = 'Version 2.7';


implementation
Expand Down
Binary file modified WR PTXTool/WR_PTXTool.res
Binary file not shown.

0 comments on commit 94dfaf0

Please sign in to comment.