This software and its source code (if available) are licensed under the Apache-2.0 license (unless otherwise specified) which DOES NOT APPLY to any third-party code (such as zlib for example) and borrowed Assembler code (ripped code from other software executable files).
# GoldenLand .PAK unpacker
# (c) CTPAX-X Team 2014
# http://www.ctpax-x.org/
ImpType Standard
IDString "PAK "
Get Zero Long
Get FileCount Long
For I = 1 To FileCount
Get NameSize Long
GetDString FileName NameSize
Get FileSize Long
Get FileOffs Long
SavePos TOC
GoTo FileOffs
Get Zero Long
Math FileOffs += 4
If Zero == 0
Log FileName FileOffs FileSize
Else
Get Zero Long
Math FileOffs += 4
ComType zlib
CLog FileName FileOffs Zero FileSize
ComType copy
EndIf
GoTo TOC
Next I