Results 1 to 3 of 3

Thread: zLib - archives

  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174

    zLib - archives

    perhaps it could be possible to put needed resources for a script (as media\, fonts\ etc.) into a *.zip-file and unzip the needed files during runtime directly to memory.
    (in Purebasic users can do nearly that).

    Like
    Uses "zLib"
    
    #Include Archive "media.zip" ' (located obviously to app_scriptpath)
    
    String myBMPData = zLib_Load( { ["media.zip",] "greenButton.bmp" | "media\greenButton.bmp" } )
    
    ...?


    later include the zip-archive to
    #Bundle Archive "media.zip" ...
    
    Last edited by ReneMiner; 11-12-2015 at 12:10.
    I think there are missing some Forum-sections as beta-testing and support

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    Thanks, great idea.

    I've developed a new zLib function able to extract a file from a ZIP file and return it into a string buffer:
    string sBuffer = ZLib_ExtractToString(ZIPFileName, FileNameToExtract)
    
    Will be present in next release.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174
    Very nice, i guess it will become handy
    I think there are missing some Forum-sections as beta-testing and support

Similar Threads

  1. thinBundle, can't find zlib.dll
    By Michael Hartlef in forum thinBundle bugs report
    Replies: 21
    Last Post: 12-05-2007, 10:12

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •