CatchPackage(address.l)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

CatchPackage(address.l)

Post by dmoc »

I'd like to include a package file (created using PB's packer library) as a binary and then use it without extracting it to disk first. Easy one?
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post by Pupil »

The package file format is not that hard to mimic, basicly it's something like this:

[LengthToNext]:Long ; How many bytes to next file
[UnpackedSize]:Long ; Length of the unpacked file
[PackData] ; the packed data
...
[LengthToNext]:Long
[UnpackedSize]:Long
[PackData]

the order of the data may be different though..
Post Reply