forked from dolphin-emu/dolphin
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pipes for bot functionality (#22)
* Don't error on menu frames. * Wait for inputs until all PipeDevices have been flushed in blocking mode. Previously, we'd only wait for the first PipeDevice, which in theory could cause race conditions. * Fix several bugs in PipeDevice, and improve readability. Fixes three issues introduced in the migration to mainline: 1. Due to a unsigned -> signed cast, excessive memory was allocated, resulting in a crash. 2. The unix `select` function was called with improper arguments. 3. In blocking mode, we should only wait for activity on the unix pipe once; if we wait before each read, we'll never finish reading. * Add note on analog trigger presses for pipe inputs.
- Loading branch information
Showing
3 changed files
with
72 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters