Skip to content

Commit

Permalink
support GMS v230
Browse files Browse the repository at this point in the history
  • Loading branch information
Elem8100 authored Feb 15, 2022
1 parent ad6eba0 commit 8de6761
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion WZlib/WZArchive.pas
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ TWZArchive = class

implementation

uses
MainUnit;

function TWZArchive.ResolveFullPath(P: string): TWZIMGEntry;
var
Split: TArray<string>;
Expand Down Expand Up @@ -129,7 +132,9 @@ procedure TWZArchive.Load;
FHeaderSize := FReader.ReadInt;
FCopyright := FReader.ReadNullTerminatedString;
// if not Is64Bit then
FVersion := DecodeVersion(FReader.ReadShort);

if (MainForm.ComboKey.ItemIndex = 0) or (MainForm.ComboKey.ItemIndex = 2) or (MainForm.ComboKey.ItemIndex = 3) then
FVersion := DecodeVersion(FReader.ReadShort);

ParseDirectory(FRoot);
Off := FReader.Position;
Expand Down

0 comments on commit 8de6761

Please sign in to comment.