Skip to content

Commit

Permalink
Make sure to save the selection when auto detection is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed Apr 26, 2024
1 parent a6619ab commit 7d6c9bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 7d6c9bd

Please sign in to comment.