diff options
Diffstat (limited to 'games/jfsw/patches/sdl_cdrom_fix.diff')
-rw-r--r-- | games/jfsw/patches/sdl_cdrom_fix.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/jfsw/patches/sdl_cdrom_fix.diff b/games/jfsw/patches/sdl_cdrom_fix.diff new file mode 100644 index 0000000000..bffad4a76b --- /dev/null +++ b/games/jfsw/patches/sdl_cdrom_fix.diff @@ -0,0 +1,20 @@ +diff -Naur jfsw.orig/jfaudiolib/src/driver_sdl.c jfsw/jfaudiolib/src/driver_sdl.c +--- jfsw.orig/jfaudiolib/src/driver_sdl.c 2017-02-02 07:22:54.000000000 -0500 ++++ jfsw/jfaudiolib/src/driver_sdl.c 2018-07-12 17:08:14.907153516 -0400 +@@ -375,6 +375,7 @@ + int SDLDrv_CD_Init(void) + { + #if (SDL_MAJOR_VERSION == 1) ++ CDstatus status; + Uint32 inited; + Uint32 err = 0; + int i; +@@ -407,6 +408,8 @@ + return SDLErr_Error; + } + ++ status = SDL_CDStatus(CDRom); ++ + fprintf(stderr, "SDL_CD: numtracks: %d\n", CDRom->numtracks); + for (i = 0; i < CDRom->numtracks; i++) { + fprintf(stderr, "SDL_CD: track %d - %s, %dsec\n", |