Closed lmichaelis closed 1 year ago
This seems to be a problem with MapViewOfFile
rather than mio
. If it returns nullptr
if the file is empty, then mio
can't do anything about that. Regardless of that, any read from that file would fail anyways so the caller has to deal with the error.
...\TheChroniclesOfMyrtana\_work\Data\Scripts\_compiled\Fight.dat
- is empty file, that causesmmap
to fail internally.Originally posted by @Try in https://github.com/Try/OpenGothic/issues/271#issuecomment-1301469337