MicroPack.pbi - pack files and dirs, with filenames

Share your advanced PureBasic knowledge/code with the community.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Ay yah! It simply has to check if the PAK file exists and jump to the integration of the new files if that is true!
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Oh, the last code I posted was for Wolf to fix that Unicode issue :). I don't think you can use it because it was meant to pack only 1 file and you need to pack more. You gotta use the other code that packs all files recursively (see MicroPack.pbi in the first post).
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Wolf
Enthusiast
Enthusiast
Posts: 232
Joined: Sat Apr 03, 2004 12:00 pm
Location: S.T

Add an space to selected line

Post by Wolf »

Inf0Byt3 wrote:Could you please try this code? :)
........
Now worked, thank you Inf0Byt3 :wink:

About first post:

Its really nice code but unfortunately have some bug....
Test:

Before:

697 Files, 21 Folders
30.4 MB (31,894,345 bytes)

After:

688 Files, 20 Folders
30.4 MB (31,894,345 bytes)

Not including hidden and system attribute files and too empty files and folders as you say, but i think its weakness!

Another problem, when compile this source at above test at end get this error:

[ERROR] This memory buffer is not initialized (null).

At this line:

WriteData(FileOut,*File,Size)
Post Reply