Skip to content

Commit

Permalink
Merge pull request #3723 from NebularNerd/master
Browse files Browse the repository at this point in the history
Update drive_physfs.cpp to support overlay files in place of .zip files
  • Loading branch information
joncampbell123 authored Sep 15, 2022
2 parents 65d8821 + e7eca5d commit 796372c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dos/drive_physfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ bool physfsDrive::setOverlaydir(const char * name) {
return false;
} else {
if (oldwrite) PHYSFS_unmount(oldwrite);
PHYSFS_mount(newname, NULL, 1);
PHYSFS_mount(newname, NULL, 0);
dirCache.EmptyCache();
}
if (oldwrite) free((char *)oldwrite);
Expand Down Expand Up @@ -743,7 +743,7 @@ bool physfsFile::Seek(uint32_t * pos,uint32_t type) {
switch (type) {
case DOS_SEEK_SET:break;
case DOS_SEEK_CUR:mypos += PHYSFS_tell(fhandle); break;
case DOS_SEEK_END:mypos += PHYSFS_fileLength(fhandle)-mypos; break;
case DOS_SEEK_END:mypos += PHYSFS_fileLength(fhandle); -mypos; break;
default:
//TODO Give some doserrorcode;
return false;//ERROR
Expand Down

0 comments on commit 796372c

Please sign in to comment.