Make libmikmod optional since the port isn't working yet.

This commit is contained in:
gameblabla 2019-08-21 07:21:43 +02:00
parent 77a3adbc51
commit 29a6b71415
No known key found for this signature in database
GPG Key ID: B24EFBB23B5F76CB
2 changed files with 26 additions and 1 deletions

View File

@ -19,7 +19,7 @@ OBJDIR = ./obj
BINDIR = ./bin BINDIR = ./bin
TOOLSDIR = ./tools TOOLSDIR = ./tools
LINK_FLAGS = -O1 -L$(ROOTDIR)/lib -L$(ROOTDIR)/mips64-elf/lib -ldragon -lmikmod -lmad -lyaml -lc -lm -ldragonsys -lnosys $(LIBS) -Tn64.ld LINK_FLAGS = -O1 -L$(ROOTDIR)/lib -L$(ROOTDIR)/mips64-elf/lib -ldragon -lmad -lyaml -lc -lm -ldragonsys -lnosys $(LIBS) -Tn64.ld
PROG_NAME = OS64 PROG_NAME = OS64
CFLAGS = -std=gnu99 -march=vr4300 -mtune=vr4300 -O1 -I$(INCDIR) -I$(ROOTDIR)/include -I$(ROOTDIR)/mips64-elf/include -lpthread -lrt -D_REENTRANT -DUSE_TRUETYPE $(SET_DEBUG) CFLAGS = -std=gnu99 -march=vr4300 -mtune=vr4300 -O1 -I$(INCDIR) -I$(ROOTDIR)/include -I$(ROOTDIR)/mips64-elf/include -lpthread -lrt -D_REENTRANT -DUSE_TRUETYPE $(SET_DEBUG)
ASFLAGS = -mtune=vr4300 -march=vr4300 ASFLAGS = -mtune=vr4300 -march=vr4300

View File

@ -3,6 +3,30 @@
// See LICENSE file in the project root for full license information. // See LICENSE file in the project root for full license information.
// //
#if !defined(SOUND_ENABLED)
void sndInit(void)
{
}
void sndPlayBGM(char* filename)
{
}
void sndStopAll(void)
{
}
void sndPlaySFX(char* filename)
{
}
void sndUpdate(void)
{
}
#else
#include <mikmod.h> #include <mikmod.h>
#include <libdragon.h> //needed for audio_get_frequency() #include <libdragon.h> //needed for audio_get_frequency()
#include "hashtable.h" #include "hashtable.h"
@ -111,3 +135,4 @@ void sndUpdate(void)
} }
} }
#endif