Save profile name used

- Save the profile name in global config
- Read the profile name when reading the global config
This commit is contained in:
flodavid 2023-12-16 18:26:26 +01:00
parent 82b58668ed
commit 63b835f822
7 changed files with 55 additions and 12 deletions

View file

@ -5,6 +5,7 @@
#define SDL_MAIN_HANDLED
#include <SDL.h>
#include "common/logging/log.h"
#include "input_common/main.h"
#include "sdl_config.h"
@ -64,7 +65,7 @@ void SdlConfig::ReloadAllValues() {
}
void SdlConfig::SaveAllValues() {
Save();
SaveValues();
SaveSdlValues();
}
@ -177,6 +178,7 @@ void SdlConfig::ReadHidbusValues() {
}
void SdlConfig::SaveSdlValues() {
LOG_DEBUG(Config, "Saving SDL configuration values");
SaveSdlControlValues();
WriteToIni();