diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-08-13 18:57:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-13 18:57:11 +0200 |
| commit | 5bf760fa0be12ea1f5eebbadba8224f98bc80294 (patch) | |
| tree | 4294aff6513f3952da2f7473903852b2539b0505 /Source | |
| parent | d50494b88d81a4e3b3a9b912ddf2ebd9b6797c44 (diff) | |
| parent | ec5d2a4f414cb78a6216145b6d8c151ebc6d1209 (diff) | |
Merge pull request #12069 from riidefi/silent-sd-failure
Prevent SD data loss from silent resync failure
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/Core.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index e8e738854e..2865c81a9d 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -535,7 +535,16 @@ static void EmuThread(std::unique_ptr<BootParameters> boot, WindowSystemInfo wsi Common::ScopeGuard sd_folder_sync_guard{[sync_sd_folder] { if (sync_sd_folder && Config::Get(Config::MAIN_ALLOW_SD_WRITES)) - Common::SyncSDImageToSDFolder([]() { return false; }); + { + const bool sync_ok = Common::SyncSDImageToSDFolder([]() { return false; }); + if (!sync_ok) + { + PanicAlertFmtT( + "Failed to sync SD card with folder. All changes made this session will be " + "discarded on next boot if you do not manually re-issue a resync in Config > " + "Wii > SD Card Settings > Convert File to Folder Now!"); + } + } }}; // Load Wiimotes - only if we are booting in Wii mode |
