mirror of
https://github.com/wiiu-env/region_free_plugin.git
synced 2024-11-21 19:09:17 +01:00
Stop loading the country from the config file
This commit is contained in:
parent
c7075d78dd
commit
7ab24be653
@ -241,11 +241,11 @@ void bootStuff() {
|
|||||||
gCurrentLanguage = gDefaultLanguage;
|
gCurrentLanguage = gDefaultLanguage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (WUPS_GetInt(curTitleItem, VAL_COUNTRY, (int32_t *) &gCurrentCountry) != WUPS_STORAGE_ERROR_SUCCESS) {
|
if (WUPS_GetInt(curTitleItem, VAL_COUNTRY, (int32_t *) &gCurrentCountry) != WUPS_STORAGE_ERROR_SUCCESS) {
|
||||||
WUPS_StoreInt(curTitleItem, VAL_COUNTRY, gDefaultCountry);
|
WUPS_StoreInt(curTitleItem, VAL_COUNTRY, gDefaultCountry);
|
||||||
gCurrentCountry = gDefaultCountry;
|
gCurrentCountry = gDefaultCountry;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
if (WUPS_GetInt(curTitleItem, VAL_PRODUCT_AREA, (int32_t *) &gCurrentProductArea) != WUPS_STORAGE_ERROR_SUCCESS) {
|
if (WUPS_GetInt(curTitleItem, VAL_PRODUCT_AREA, (int32_t *) &gCurrentProductArea) != WUPS_STORAGE_ERROR_SUCCESS) {
|
||||||
@ -276,7 +276,7 @@ void bootStuff() {
|
|||||||
ConfigUtils::openConfigMenu();
|
ConfigUtils::openConfigMenu();
|
||||||
// Save settings to storage
|
// Save settings to storage
|
||||||
WUPS_StoreInt(curTitleItem, VAL_LANGUAGE, gCurrentLanguage);
|
WUPS_StoreInt(curTitleItem, VAL_LANGUAGE, gCurrentLanguage);
|
||||||
WUPS_StoreInt(curTitleItem, VAL_COUNTRY, gCurrentCountry);
|
//WUPS_StoreInt(curTitleItem, VAL_COUNTRY, gCurrentCountry);
|
||||||
WUPS_StoreInt(curTitleItem, VAL_PRODUCT_AREA, gCurrentProductArea);
|
WUPS_StoreInt(curTitleItem, VAL_PRODUCT_AREA, gCurrentProductArea);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -301,7 +301,6 @@ ON_APPLICATION_START() {
|
|||||||
WUPS_CreateSubItem(root, CAT_GENERAL_SETTINGS, &general_settings);
|
WUPS_CreateSubItem(root, CAT_GENERAL_SETTINGS, &general_settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (WUPS_GetInt(general_settings, VAL_AUTO_DETECTION, (int32_t *) &gAutoDetection) != WUPS_STORAGE_ERROR_SUCCESS) {
|
if (WUPS_GetInt(general_settings, VAL_AUTO_DETECTION, (int32_t *) &gAutoDetection) != WUPS_STORAGE_ERROR_SUCCESS) {
|
||||||
WUPS_StoreInt(general_settings, VAL_AUTO_DETECTION, gAutoDetection);
|
WUPS_StoreInt(general_settings, VAL_AUTO_DETECTION, gAutoDetection);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user