diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-08 10:04:27 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-08 10:04:27 +0100 |
commit | 87388f510f800aa4bc1bb78e35b488ea5636ce87 (patch) | |
tree | 8e3f4c35976fc3a26d1540471946fe9c213634d3 /src/sound.c | |
parent | a04d006652bc7023ec0d5fa4a299789f1b69b790 (diff) | |
download | gold-mine-run-87388f510f800aa4bc1bb78e35b488ea5636ce87.tar.gz gold-mine-run-87388f510f800aa4bc1bb78e35b488ea5636ce87.zip |
CLI and no sound option
Diffstat (limited to 'src/sound.c')
-rw-r--r-- | src/sound.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sound.c b/src/sound.c index f19b7ff..0a10ae4 100644 --- a/src/sound.c +++ b/src/sound.c @@ -35,11 +35,12 @@ static MODULE *music = NULL; static uint8_t queue[MAX_QUEUE]; static uint8_t queue_top; -uint8_t sound_init() +uint8_t sound_init(uint8_t nosound) { MikMod_InitThreads(); - MikMod_RegisterDriver(&drv_sb); + if (!nosound) + MikMod_RegisterDriver(&drv_sb); MikMod_RegisterDriver(&drv_nos); MikMod_RegisterLoader(&load_it); |