Skip to content

Commit

Permalink
Merge pull request #5221 from matthewturk/fileio-logseek
Browse files Browse the repository at this point in the history
Include seeking in file operations for log-fileio
  • Loading branch information
joncampbell123 committed Sep 30, 2024
2 parents 645d77a + a295c54 commit f72da72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dos/dos_files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,11 @@ bool DOS_SeekFile(uint16_t entry,uint32_t * pos,uint32_t type,bool fcb) {
DOS_SetError(DOSERR_INVALID_HANDLE);
return false;
}

if (log_fileio) {
LOG(LOG_FILES, LOG_DEBUG)("Seeking to %d bytes from position type (%d) in %s ", *pos, type, Files[handle]->name);
}

return Files[handle]->Seek(pos,type);
}

Expand Down

0 comments on commit f72da72

Please sign in to comment.