VFFUtil: Invalidate window on mount.
This commit is contained in:
parent
b1725dfb33
commit
cbc96adfd2
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
#include <limits>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
|
@ -97,6 +98,10 @@ static DRESULT read_vff_header(IOS::HLE::FS::FileHandle* vff, FATFS* fs)
|
||||||
fs->id = 0;
|
fs->id = 0;
|
||||||
fs->cdir = 0;
|
fs->cdir = 0;
|
||||||
|
|
||||||
|
// invalidate window
|
||||||
|
fs->wflag = 0;
|
||||||
|
fs->winsect = std::numeric_limits<LBA_t>::max();
|
||||||
|
|
||||||
return RES_OK;
|
return RES_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue