From b151117f7b101e2ee74b7961d7ab636cca467da5 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 7 Sep 2022 15:53:44 +0200 Subject: [PATCH] Updated the README and config menu --- README.md | 17 +++++++++-------- src/main.cpp | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e1d7c07..41b7ae4 100644 --- a/README.md +++ b/README.md @@ -10,27 +10,28 @@ This plugin allows you to launch an title of an other region and / or force a la 1. Copy the file `regionfree.wps` into `sd:/wiiu/environments/[ENVIRONMENT]/plugins`. 2. Requires the [WiiUPluginLoaderBackend](https://github.com/wiiu-env/WiiUPluginLoaderBackend) in `sd:/wiiu/environments/[ENVIRONMENT]/modules`. -At the first launch with the plugin open the config menu (press ZL, DPAD Down and Minus on the gamepad) and set your default language for each region. +At the first launch with the plugin open the config menu (press L, DPAD Down and Minus on the gamepad) and set your default language for each region. ## Usage The plugin has a built in auto detection, so in most cases it just works out of the box. -Via the plugin config menu (press ZL, DPAD Down and Minus on the gamepad) you can configurate the plugin. The avaible options are the following: +Via the plugin config menu (press L, DPAD Down and Minus on the gamepad) you can configure the plugin. The available options are the following: -- **Auto Detection**: Enabled/Disabled the auto detection of the region/language. When you disable it, you need/can set the region and language for a title on each title start. Enabled by default. -- **Prefer System Settings For Own Region**: Forces the region and language of your console when starting an title or your region (Ignoring "Default Language for Region"). Enabled by default. -- **Default Language for EUR**: Sets the default language for EUR titles. Set to English by default. -- **Default Language for USA**: Sets the default language for USA titles. Set to English by default. +- **Auto detect region/language**: Enabled/Disabled the auto detection of the region/language. When you disable it, you need/can set the region and language for a title on each title start. Enabled by default. +- **Force auto detection for in-region titles**: Force auto detection when starting a title of your region, even if auto detection is disabled. Enabled by default. +- **Prefer systen language for in-region titles**: Forces the region and language of your console when starting a title of your region (Ignoring "Default Language for Region"). Enabled by default. +- **Default language for EUR**: Sets the default language for EUR titles. Set to english by default. +- **Default language for USA**: Sets the default language for USA titles. Set to english by default. If the auto detection fails, the user needs to enter a region/language on the title boot. The plugin keeps tracks the region/language the user has selected for an title. Scenario: - - The User has disabled the auto detection and booted a EUR version of Mario Kart 8 in German on their US console. + - The User has disabled the auto detection and booted a EUR version of Mario Kart 8 in german on their US console. - The User then enables the auto detection and set the default language for EUR titles to English. - - The EUR version of Mario Kart 8 will still boot in German. To change the language the user has to disable the auto detection and reboot the title. + - The EUR version of Mario Kart 8 will still boot in german. To change the language the user has to disable the auto detection and reboot the title. ## Building using the Dockerfile diff --git a/src/main.cpp b/src/main.cpp index 98c8a6d..b82f0f6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -434,8 +434,8 @@ WUPS_GET_CONFIG() { WUPSConfig_AddCategoryByNameHandled(config, "Settings", &cat); WUPSConfigItemBoolean_AddToCategoryHandled(config, cat, VAL_DEFAULT_LANG_USA, "Auto detect region/language", gAutoDetection, &auto_detection_changed); + WUPSConfigItemBoolean_AddToCategoryHandled(config, cat, VAL_SKIP_OWN_REGION, "Force auto detection for in-region titles", gSkipOwnRegion, &skip_own_region_changed); WUPSConfigItemBoolean_AddToCategoryHandled(config, cat, VAL_PREFER_SYSTEM_SETTINGS, "Prefer system language for in-region titles", gPreferSystemSettings, &prefer_system_changed); - WUPSConfigItemBoolean_AddToCategoryHandled(config, cat, VAL_SKIP_OWN_REGION, "Skip check for in-region titles", gSkipOwnRegion, &skip_own_region_changed); std::map eur_lang_map{ {LANG_ENGLISH, "English"},