config: Custom profile detection fixes
Also only reads/writes applicable configs for the custom profiles.
This commit is contained in:
parent
b1b20ad84a
commit
3de05726eb
6 changed files with 109 additions and 65 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue