[Module] FileContainer.pbi (all OS)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

[Module] FileContainer.pbi (all OS)

Post by Thorsten1867 »

FileContainer - Module (all OS / 64Bit)
  • Merges all data files of a program into one container
  • Files are encrypted when a password is set
  • Files are unpacked only when needed and automatically moved back into the container when it is closed.
  • Resources such as images, sounds, etc. can be loaded directly from the container.
  • XML and JSON files can be read directly from and written to the container.

Code: Select all

; Container::AddFile()       - add a new file to the container
; Container::CheckPassword() - checks if the password is correct and sets the password for opening the container
; Container::Close()         - moves all open files back to the container
; Container::Create()        - creates a new container
; Container::GetInfo()       - get container info (#Program / #Description / #Author)
; Container::GetFileInfo()   - get file info (#FileSize / #Modified)
; Container::Load()          - load directly from the container (#XML / #JSON / #Image / #Sound / #Sprite)
; Container::Open()          - opens the container (password is not required if CheckPassword() is used)
; Container::RemoveFile()    - removes a file form the container
; Container::Save()          - save directly to the container (#XML / #JSON)
; Container::UpdateFile()    - update file in container
; Container::UseFile()       - unpack a file to use it
Download: FileContainer.pbi
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: [Module] FileContainer.pbi (all OS)

Post by Kwai chang caine »

Works great here
Thanks for sharing 8)
ImageThe happiness is a road...
Not a destination
Post Reply