Giter Club home page Giter Club logo

whdloadarchivefs's People

Contributors

temisu avatar wepl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

whdloadarchivefs's Issues

lets talk

Hi temisu,
I would like to use this issue for related discussions.

For archivefs_dirCache() it is important, that the order in which entries are provided makes sure that for files in a subdirectory the directory entry above is provided before. This is required to build the structure in WHDLoad.
Is this the case?
I wonder also if archives are possible which do not contain the subdirectory above. Can you tell me?

filenames not case sensitive

The functions getFileSize and fileRead must handle filenames not case sensitive as the Amiga filesystems do.
As WHDLoad currently only handles case of US-ASCII this would also be enough for WHDLoadArchiveFS.

archivefs_dirCache registerFunc path

Hi, may specs were unclear...
In the function registerFunc called by archivefs_dirCache I like to get the full path including the name of the actual object. Currently it seems to only return the path without the object. I know the object name is in the fib but having it in the path too makes things simpler.
Could you change it that way?

error codes

To let WHDLoad more precise react on errors from WHDLoadArchiveFS it would be needed to define some error codes.
I would like to distinguish on getFileSize from simply that file isn't in the archive from any other error.
For that I would propose to define an VFS_ERROR_OBJECT_NOT_FOUND=-2 in whdvfs.i and an starting point of individual errors defined by WHDLoadArchiveFS privately itself, e.g. VFS_ERROR_CUSTOM=-100.
What do you think?

archivefs_fileCache/archivefs_dirCache return value

Hi again,
can you please change archivefs_fileCache/archivefs_dirCache to return an error code if the the callback function fileFunc/registerFunc has returned 0 for stop (these only return 0 on an error condition).
At the moment it is not really needed to provide a error string for this (but maybe better for completeness)

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.