From 7d6c9bd08e391c2d23a53dd612c16bd04ec1ec0d Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 21 Apr 2024 15:45:13 +0200 Subject: [PATCH] Make sure to save the selection when auto detection is disabled --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 79c4ec2..c4d07e4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -112,6 +112,11 @@ void SetupRegionSpoofing() { // Save (updated) title settings to the storage if (!saveTitleRegionInfo({OSGetTitleID(), gCurrentLanguage, gCurrentProductArea})) { DEBUG_FUNCTION_LINE_ERR("Failed to save current title region info to storage"); + } else { + WUPSStorageError err; + if ((err = WUPSStorageAPI::SaveStorage()) != WUPS_STORAGE_ERROR_SUCCESS) { + DEBUG_FUNCTION_LINE_ERR("Failed to save storage: %s (%d)", WUPSStorageAPI_GetStatusStr(err), err); + } } }