Merge pull request #12380 from flodavid/save-profile

Save configuration profile name used by players
This commit is contained in:
Narr the Reg 2024-01-16 21:27:25 -06:00 committed by GitHub
commit 46c2435235
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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();