commit 6e8dc57e94f9d00a82fe8272e210d238b7a4f17f
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sun Oct 8 22:09:11 2017 -0400
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Sun Oct 8 22:09:11 2017 -0400
cdmus: Change I_CDMusInit() to return failure.
CD music support has basically been removed now, so this function
should return -1 to indicate failure. But print an error message and
provide a useful link to an alternative.
---
src/i_cdmus.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/i_cdmus.c b/src/i_cdmus.c
index d88ff99c..caad87af 100644
--- a/src/i_cdmus.c
+++ b/src/i_cdmus.c
@@ -28,7 +28,11 @@ int cd_Error;
int I_CDMusInit(void)
{
- return 0;
+ fprintf(stderr,
+ "I_CDMusInit: CD music playback is no longer supported! "
+ "Please use digital music packs instead:\n"
+ "https://www.chocolate-doom.org/wiki/index.php/Digital_music_packs\n");
+ return -1;
}
// We cannot print status messages inline during startup, they must