git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 53fc5a74edcde74916e5f5e333df2d3e29f46154
parent 035291b955133ecf2b077a8b90711e7d2b3cb006
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Wed, 31 Jul 2024 00:58:30 +0300

CoreHaptics is trash.

Diffstat:
MiOS/GBHapticManager.m7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/iOS/GBHapticManager.m b/iOS/GBHapticManager.m @@ -89,7 +89,12 @@ rumble = 0; } if (rumble == 0) { - [_rumblePlayer stopAtTime:0 error:nil]; + @try { + /* Why must every method from this framework randomly throw exceptions whenever + anything remotely unusual happens? CoreHaptic sucks.*/ + [_rumblePlayer stopAtTime:0 error:nil]; + } + @catch (NSException *exception) {} _rumblePlayer = nil; _rumble = 0; return;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.