diff options
author | B. Watson <yalhcru@gmail.com> | 2018-07-13 22:41:52 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-07-17 07:15:49 +0700 |
commit | 2c0e839923b6853a42533691393dea9629d9fd5e (patch) | |
tree | 58f9f71f0a3d7e7b9d866933f2e4907561431bec /games/jfsw/patches/sdl_cdrom_fix.diff | |
parent | 70c013179db63be17ff6a1e7b8d797688aa02eb8 (diff) | |
download | slackbuilds-2c0e839923b6853a42533691393dea9629d9fd5e.tar.gz slackbuilds-2c0e839923b6853a42533691393dea9629d9fd5e.tar.xz |
games/jfsw: Enhance script and documentation.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to '')
-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", |