Skip to content

fix: make fisherman rumble text work#2279

Merged
briaguya0 merged 1 commit intoHarbourMasters:develop-bradleyfrom
briaguya0:fix-rumble-text
Dec 26, 2022
Merged

fix: make fisherman rumble text work#2279
briaguya0 merged 1 commit intoHarbourMasters:develop-bradleyfrom
briaguya0:fix-rumble-text

Conversation

@briaguya0
Copy link
Contributor

@briaguya0 briaguya0 commented Dec 26, 2022

we weren't correctly setting the pakType in padMgr because the depreciated gRumbleEnabled cvar was being checked

fixes #170

Build Artifacts

}

extern "C" int Controller_ShouldRumble(size_t i) {
extern "C" int Controller_ShouldRumble(size_t slot) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is only ever called from that one place in padmgr https://github.com/HarbourMasters/Shipwright/search?q=Controller_ShouldRumble

Copy link
Contributor

@dcvz dcvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending one comment!

return 1;
}
auto physicalDevice = controlDeck->GetPhysicalDeviceFromVirtualSlot(slot);
if (physicalDevice->getProfile(slot)->UseRumble && physicalDevice->CanRumble()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to check for null reference here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly, i'll try to break it real quick and see how to best protect against that

we weren't correctly setting the pakType in padMgr because
the depreciated `gRumbleEnabled` cvar was being checked
@briaguya0 briaguya0 merged commit f42f86e into HarbourMasters:develop-bradley Dec 26, 2022
@briaguya0 briaguya0 deleted the fix-rumble-text branch January 18, 2023 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants