-
Notifications
You must be signed in to change notification settings - Fork 465
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
fix: make fisherman rumble text work #2279
Conversation
@@ -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) { |
There was a problem hiding this comment.
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
There was a problem hiding this 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!
soh/soh/OTRGlobals.cpp
Outdated
return 1; | ||
} | ||
auto physicalDevice = controlDeck->GetPhysicalDeviceFromVirtualSlot(slot); | ||
if (physicalDevice->getProfile(slot)->UseRumble && physicalDevice->CanRumble()) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
7d9dc37
to
7dca23f
Compare
we weren't correctly setting the pakType in padMgr because the depreciated `gRumbleEnabled` cvar was being checked
7dca23f
to
a9434a4
Compare
we weren't correctly setting the pakType in padMgr because the depreciated
gRumbleEnabled
cvar was being checkedfixes #170
Build Artifacts