Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make fisherman rumble text work #2279

Merged

Conversation

briaguya-ai
Copy link
Contributor

@briaguya-ai briaguya-ai 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

@@ -1757,14 +1757,11 @@ extern "C" void AudioPlayer_Play(const uint8_t* buf, uint32_t len) {
}
}

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
@briaguya-ai briaguya-ai merged commit f42f86e into HarbourMasters:develop-bradley Dec 26, 2022
@briaguya-ai briaguya-ai 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.

None yet

2 participants