Skip to content

Commit

Permalink
Make libmikmod optional since the port isn't working yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
gameblabla committed Aug 21, 2019
1 parent 77a3adb commit 29a6b71
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ OBJDIR = ./obj
BINDIR = ./bin
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
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
Expand Down
25 changes: 25 additions & 0 deletions src/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@
// 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 <libdragon.h> //needed for audio_get_frequency()
#include "hashtable.h"
Expand Down Expand Up @@ -111,3 +135,4 @@ void sndUpdate(void)

}
}
#endif

0 comments on commit 29a6b71

Please sign in to comment.