Giter Club home page Giter Club logo

whdloadarchivefs's Introduction

WHDLoadArchiveFS - Lha and Zip opening virtual filesystem for WHDLoad

Introduction

This is extension for WHDLoad utilizing whdvfs-interface. It creates virtual filesystem from Zip and Lha archives thus allows WHDLoad to run images directly from archives without needing to unpack them

In order to use this extension, you must have WHDLoad version of 18.7.6188 at minimum

Installation

Download (or compile) the WHDLoad.VFS and copy it into the installation directory of WHDLoad (which is usually C:)

Supported formats

This extension supports following formats

  • Lha archives with Level0, Level1 and Level2 headers
  • Lha compression methods LH4, LH5, LH6
  • Zip archives that are RFC-compliant and not zip64
  • Zip compression method deflate
  • Amiga specific extensions to both Lha and Zip (for example file attributes, file notes)

Please note that by default only archives that are created by Amiga are supported!

Please note that using compression will impact loading performance hugely. Also it requires more memory

Example (Secret of Monkey Island)

As a simple example lets modify existing installation of Monkey Island to use the archive loading.

  1. Open shell
  2. Run cd <game_dir>/data
  3. Run zip -r0N /data.zip #?
  4. Close shell
  5. Edit SecretOfMonkeyIsland.info. Add ToolType Data=data.zip

After this, the data is loaded from an zip file you created. Please note that:

  • This game does not benefit from archive loading particularly. (there is no big amount of small files). This is just an example
  • You must also set SavePath tooltype in order to save games. The archive is read only.

Compression examples

For Lha (uncompressed):

lha -earz a <archive>.lha <directory>

For Lha (compressed):

lha -earz a <archive>.lha <directory>

For Zip (uncompressed):

zip -r0N <archive>.zip <directory>

For Zip (compressed):

zip -rN <archive>.zip <directory>

Replace the <archive> and <directory> with the target archive name and source directory name respectively

Feedback

Please use the github tracker for bugs, feature requests. PRs are also welcome.

For any other feedback use tz at iki dot fi

Known issues

  • Some rarely used compression features are not tested yet, thus they are probably broken
  • Currently the decompression performance is luke warm at best. This is ongoing effort...
  • There are some missing test cases
  • Lha LH1 is not supported and it is questionable if there is value in supporting it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.