[Module] FileContainer.pbi (all OS)

Hier könnt Ihr gute, von Euch geschriebene Codes posten. Sie müssen auf jeden Fall funktionieren und sollten möglichst effizient, elegant und beispielhaft oder einfach nur cool sein.
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

[Module] FileContainer.pbi (all OS)

Beitrag von Thorsten1867 »

FileContainer - Module (all OS / 64Bit)
  • Fasst alle Daten-Dateien eines Programmes in einem Container zusammen
  • Dateien werden verschlüsselt, wenn ein Passwort festgelegt wurde
  • Dateien werden nur entpackt, wenn diese benötigt werden und automatisch zurück in den Container verschoben, wenn dieser gescchlossen wird.
  • Ressourcen, wie Bilder, Sounds, usw. können direkt aus dem Container geladen werden.
  • XML und JSON Dateien können direkt aus dem Container gelesen bzw. in den Container geschrieben werden.

Code: Alles auswählen

; 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
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild