Make sure to save the selection when auto detection is disabled

This commit is contained in:
Maschell 2024-04-21 15:45:13 +02:00
parent a6619ab33d
commit 7d6c9bd08e

View File

@ -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);
}
}
}