Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple open files #31

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Allow multiple open files #31

merged 1 commit into from
Apr 17, 2024

Conversation

skx
Copy link
Owner

@skx skx commented Apr 17, 2024

This pull-request closes #27, by updating our file-handling to allow multiple open files at once. Instead of storing a single file-handle when a file was created/opened, we installed stash the filehandle of the open-files we've created in the FCB.

We (ab)use the Al[0] field to store our file number and retrieve it later.

Testing:

  • Loading zork works
    • Which uses random-reads to load zork.dat
  • Loading/Saving games in zork works.

More than that? Who knows.

This pull-request closes #27, by updating our file-handling to
allow multiple open files at once.  Instead of storing a single
file-handle when a file was created/opened, we installed stash
the filehandle of the open-files we've created in the FCB.

We (ab)use the Al[0] field to store our file number and retrieve
it later.

Testing:

* Loading zork works
  * Which uses random-reads to load zork.dat
* Loading/Saving games in zork works.

More than that?  Who knows.
@skx skx merged commit 248dbae into master Apr 17, 2024
2 checks passed
@skx skx deleted the 27-file branch April 17, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overhaul our file handling
1 participant