temisu / whdloadarchivefs Goto Github PK
View Code? Open in Web Editor NEWArchive loading module for WHDLoad
License: BSD 2-Clause "Simplified" License
Archive loading module for WHDLoad
License: BSD 2-Clause "Simplified" License
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?
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.
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?
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?
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.