mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
VFFUtil: Invalidate window on mount.
This commit is contained in:
parent
b1725dfb33
commit
cbc96adfd2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user