config: Custom profile detection fixes

Also only reads/writes applicable configs for the custom profiles.
This commit is contained in:
ameerj 2022-11-19 15:39:09 -05:00
parent 8a1c99d57b
commit 736a034af8
6 changed files with 109 additions and 65 deletions

View file

@ -34,6 +34,7 @@ public:
void ReadControlPlayerValue(std::size_t player_index);
void SaveControlPlayerValue(std::size_t player_index);
void ClearControlPlayerValues();
const std::string& GetConfigFilePath() const;
@ -58,6 +59,7 @@ public:
private:
void Initialize(const std::string& config_name);
bool IsCustomConfig();
void ReadValues();
void ReadPlayerValue(std::size_t player_index);