mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-12 12:18:22 -04:00
[android] config: load configuration on game start
This commit is contained in:
parent
5aba461cb3
commit
4f8c03c385
2 changed files with 5 additions and 0 deletions
|
|
@ -127,6 +127,8 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener, InputManager
|
|||
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
NativeConfig.reloadGlobalConfig()
|
||||
|
||||
InputHandler.updateControllerData()
|
||||
val players = NativeConfig.getInputSettings(true)
|
||||
var hasConfiguredControllers = false
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@ AndroidConfig::AndroidConfig(const std::string& config_name, ConfigType config_t
|
|||
}
|
||||
|
||||
void AndroidConfig::ReloadAllValues() {
|
||||
// Ensure the INI file is current before reloading values.
|
||||
SetUpIni();
|
||||
|
||||
Reload();
|
||||
ReadAndroidValues();
|
||||
SaveAndroidValues();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue