openbsd-ports/emulators/fs-uae/patches/patch-src_fs-uae_main_c
edd 4c5e2ad295 Update to fs-uae-2.4.0.
Joystick and hardfile support tested.

Note that the launcher has moved out of the main fs-uae source tree. A
commit adding the launcher as a new port will follow.

OK bcallah@
2014-03-15 13:04:15 +00:00

15 lines
482 B
Plaintext

$OpenBSD: patch-src_fs-uae_main_c,v 1.4 2014/03/15 13:04:16 edd Exp $
Unbreak joystick detection.
--- src/fs-uae/main.c.orig Sun Feb 16 14:58:48 2014
+++ src/fs-uae/main.c Thu Mar 13 15:21:24 2014
@@ -723,6 +723,7 @@ void list_joysticks() {
}
printf("# SDL_NumJoysticks(): %d\n", SDL_NumJoysticks());
for(int i = 0; i < SDL_NumJoysticks(); i++) {
+ SDL_JoystickOpen(i);
if (SDL_JoystickName(i)[0] == '\0') {
printf("J: Unnamed\n");
}