[Ohrrpgce] SVN: teeemcee/8142 Improve OPENFILE hooking and code cleanup.

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Wed Sep 7 10:15:58 PDT 2016


teeemcee
2016-09-07 10:15:58 -0700 (Wed, 07 Sep 2016)
556
Improve OPENFILE hooking and code cleanup.

Now if you write to write to a write-protected file the write isn't
performed and an error shown immediately, instead of performing it
and showing an error when closing the file.
Likewise copyfile() also checks before instead of after doing the copy.
The hook filter function can now prevent a file from being opened
(relevant because showerror is now used instead of fatal error).
Finally, if you implicitly ask for write access (e.g. don't specify
access) it downgrades to read access if the file is protected.
---
U   wip/filelayer.cpp
U   wip/filelayer.h
U   wip/lumpfile.bas
U   wip/lumpfile.bi


More information about the Ohrrpgce mailing list