Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Denellyne committed Mar 24, 2024
1 parent fa462e3 commit 6326844
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/User Settings/Game Profiles/gameProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ void inline static asyncCheckMacro(const std::vector<Macros>& gameMacros, const
void inline static setProfile(controller& x360Controller,const gameProfile& gameProfile) {
extern bool rumbleEnabled;

if (gameProfile.buttonMapping[19]) {
std::thread(asyncCheckMacro, std::ref(gameProfile.gameMacros), std::ref(x360Controller)).detach();
if (gameProfile.buttonMapping[19])
rumbleEnabled = false;
}

gameProfileSet = true;

//Set profile
Expand All @@ -109,6 +108,7 @@ void asyncGameProfile(std::vector<gameProfile>& gameProfiles, controller& x360Co
if (gameProfiles[i].isOpen()) {
bool tempRumbleEnabled = rumbleEnabled;
setProfile(x360Controller, gameProfiles[i]);
std::thread(asyncCheckMacro, std::ref(gameProfiles[i].gameMacros), std::ref(x360Controller)).detach();

while (gameProfiles[i].isOpen()) {
getRumble(x360Controller, gameProfiles[i].rumbleButton);
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "main.h"
extern std::string Version = "PCXSenseBeta0.9";
extern std::string Version = "PCXSenseBeta0.9.1";

extern void (*getInputs)(controller& x360Controller) = &getDualsenseInput;
extern std::string currentDirectory{};
Expand Down

0 comments on commit 6326844

Please sign in to comment.