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 b1b20ad84a
commit 3de05726eb
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);