Skip to content

Conversation

@nanshiki
Copy link

@nanshiki nanshiki commented Dec 8, 2025

int 21h ax=5701h updates the sft's file_time.
The file close packet adds the date/time information and sends the file_time to the server, which then sets the file's date/time information.
With this modification, the date and time information will also be copied when copying a file.

…ata.

Fix to prevent date/time settings from being applied when closing files if file writing occurs.
@nanshiki
Copy link
Author

Fixed the server to accept file close packets without date and time data.

Fix to prevent date/time settings from being applied when closing files if file writing occurs.
This addresses an issue where the date and time are not updated when opening and writing to an existing file.

@nanshiki
Copy link
Author

In the sample program for UNDOCUMENTED DOS, SFT's rel_sector/abs_sector are not initialized, and it appears that their contents are neither referenced nor overwritten in actual DOS environments. Therefore, we store the file open date/time information in rel_sector/abs_sector, compare it upon closing, and if any changes are detected, we send the data to the server for updating.

@jrohel
Copy link
Owner

jrohel commented Dec 21, 2025

Thank you for your PRs. I’ll review them later. I currently have a lot of other work.

Note:
I also noticed your fork some time ago. I have a question about it, but I’ll leave it for later when I have more time.

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.

2 participants