mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Do not try to initialise SDL_AUDIO if NO_SOUND is given. This should make
gltron actually usable enen on systems w/o sound hardware.
This commit is contained in:
parent
c5e2c3494a
commit
5d61d6e2d7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28911
15
games/gltron/files/patch-af
Normal file
15
games/gltron/files/patch-af
Normal file
@ -0,0 +1,15 @@
|
||||
--- system_sdl.c 2000/05/26 09:21:17 1.1
|
||||
+++ system_sdl.c 2000/05/26 09:27:15
|
||||
@@ -17,7 +17,11 @@
|
||||
}
|
||||
|
||||
void SystemInit(int *argc, char *argv[]) {
|
||||
- if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0 ){
|
||||
+ Uint32 sflag = 0;
|
||||
+#ifdef SOUND
|
||||
+ sflag = SDL_INIT_AUDIO;
|
||||
+#endif
|
||||
+ if(SDL_Init(SDL_INIT_VIDEO | sflag) < 0 ){
|
||||
fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
|
||||
exit(1);
|
||||
}
|
Loading…
Reference in New Issue
Block a user