1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 05:00:46 +00:00
serenity/Ports/SRB2/patches
Refrag 4fbc701721 Ports: Add Sonic Robo Blast 2
This commit adds Sonic Robo Blast 2, a Sonic fangame running with SDL2
to the list of SerenityOS game ports.
The game is working fine for the most part but there's some performance
issues and the mouse never resets to the center so it gets stuck in the
window's corners. It seems like the multiplayer / networking is also
not quite working but I think that this is very cool already.
2024-02-09 23:10:18 +01:00
..
0001-add-openmpt-to-build.patch Ports: Add Sonic Robo Blast 2 2024-02-09 23:10:18 +01:00
0002-fix-libgme-include.patch Ports: Add Sonic Robo Blast 2 2024-02-09 23:10:18 +01:00
0003-disable-consolevar-value-checker-sad-path.patch Ports: Add Sonic Robo Blast 2 2024-02-09 23:10:18 +01:00
0004-i_video.c-mouse-hacks.patch Ports: Add Sonic Robo Blast 2 2024-02-09 23:10:18 +01:00
0005-i_system.c-hacks.patch Ports: Add Sonic Robo Blast 2 2024-02-09 23:10:18 +01:00
ReadMe.md Ports: Add Sonic Robo Blast 2 2024-02-09 23:10:18 +01:00

Patches for SRB2 on SerenityOS

0001-add-openmpt-to-build.patch

Add OpenMPT to build

The build system doesn't give us much choice on what library to build and what library to look for. OpenMPT is not built by default but we need it to build so this goes and change that.

0002-fix-libgme-include.patch

Fix libgme include

One of the build targets is looking for the gme.h header. It seems like it cannot automatically find it so we help it a little.

0003-disable-consolevar-value-checker-sad-path.patch

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

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.