Skip to content

Commit

Permalink
Ports: Remove SRB2 mouse hacks
Browse files Browse the repository at this point in the history
This patch builds off the previous commit and removes the mouse hacks
entirely as they are not needed anymore.

With this, Sonic Robo Blast 2 now correctly locks the mouse inside the
game and makes for a much better playing experience! :^)
  • Loading branch information
Refragg authored and gmta committed Feb 19, 2024
1 parent 33b772a commit f77e91e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 66 deletions.
56 changes: 0 additions & 56 deletions Ports/SRB2/patches/0004-i_video.c-mouse-hacks.patch

This file was deleted.

12 changes: 2 additions & 10 deletions Ports/SRB2/patches/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,9 @@ Disable Console Variables value checker sad path
For some reason, the value checker for console variables seems to not behave properly even with the default console variables value.
Disabling the error path resolves this issue and the game still works fine without it.

## `0004-i_video.c-mouse-hacks.patch`

i_video.c: Mouse hacks

This patch works aroud the SDL relative mouse implementation as it is not implemented in the port.
SRB2 relies on it quite heavily to make the mouse work, not having this unfortunately means that the mouse doesn't reset back to the center and will get stuck at the window borders. Ultimately, we would want this relative mouse implementation to have a proper mouse support.
Removing the calls to the SDL relative mouse felt like the best option for now as otherwise the console gets spammed with this "No relative mode implementation available" messsage.

## `0005-i_system.c-hacks.patch`
## `0004-i_system.c-hacks.patch`

i_system.c hacks

This patch disables / removes some code to get the game to build without issues.
These don't seem to matter much anyway as the game still runs.
These don't seem to matter much anyway as the game still runs.

0 comments on commit f77e91e

Please sign in to comment.