Skip to content

Commit

Permalink
Set the profile number in the config after switching (OpenStickCommun…
Browse files Browse the repository at this point in the history
…ity#453)

save the profile to the config after switching

I apparently accidentally refactored this away, so adding it back
  • Loading branch information
bsstephan authored Aug 16, 2023
1 parent 83b4010 commit 6c0ab4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/storagemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ PinMappings& Storage::getProfilePinMappings() {

void Storage::setProfile(const uint32_t profileNum)
{
if (profileNum < 1 || profileNum > 4) return;
setFunctionalPinMappings(profileNum);
this->config.gamepadOptions.profileNumber = profileNum;
}

void Storage::setFunctionalPinMappings(const uint32_t profileNum)
Expand Down

0 comments on commit 6c0ab4b

Please sign in to comment.