From cbc96adfd2644415eab7503503a723ca1569f50c Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 16 Oct 2022 18:06:51 +0200 Subject: [PATCH] VFFUtil: Invalidate window on mount. --- Source/Core/Core/IOS/Network/KD/VFF/VFFUtil.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Core/Core/IOS/Network/KD/VFF/VFFUtil.cpp b/Source/Core/Core/IOS/Network/KD/VFF/VFFUtil.cpp index a2805000ff..264088b2c2 100644 --- a/Source/Core/Core/IOS/Network/KD/VFF/VFFUtil.cpp +++ b/Source/Core/Core/IOS/Network/KD/VFF/VFFUtil.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include @@ -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::max(); + return RES_OK; }