VFFUtil: Invalidate window on mount.

This commit is contained in:
Admiral H. Curtiss 2022-10-16 18:06:51 +02:00
parent b1725dfb33
commit cbc96adfd2
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
#include <fmt/format.h>
@ -97,6 +98,10 @@ static DRESULT read_vff_header(IOS::HLE::FS::FileHandle* vff, FATFS* fs)
fs->id = 0;
fs->cdir = 0;
// invalidate window
fs->wflag = 0;
fs->winsect = std::numeric_limits<LBA_t>::max();
return RES_OK;
}