From bcc4c3d8fa1413b4a7ef289be4f91ac530dee10a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 11 Sep 2021 07:36:02 -0700 Subject: [PATCH] Io: Assume a write may have happened on resume. This way if they switch away to delete files, it will have more free space. --- UI/NativeApp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 5d4d8c1b76..6a526125c1 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -95,6 +95,7 @@ #include "Core/HLE/sceUsbCam.h" #include "Core/HLE/sceUsbGps.h" #include "Core/HLE/proAdhoc.h" +#include "Core/HW/MemoryStick.h" #include "Core/Util/GameManager.h" #include "Core/Util/AudioFormat.h" #include "Core/WebServer.h" @@ -1260,6 +1261,10 @@ void HandleGlobalMessage(const std::string &msg, const std::string &value) { PostLoadConfig(); g_Config.iGPUBackend = gpuBackend; } + if (msg == "app_resumed" || msg == "got_focus") { + // Assume that the user may have modified things. + MemoryStick_NotifyWrite(); + } } void NativeUpdate() {