Skip to content

Commit 29a6b71

Browse files
author
gameblabla
committed
Make libmikmod optional since the port isn't working yet.
1 parent 77a3adb commit 29a6b71

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ OBJDIR = ./obj
1919
BINDIR = ./bin
2020
TOOLSDIR = ./tools
2121

22-
LINK_FLAGS = -O1 -L$(ROOTDIR)/lib -L$(ROOTDIR)/mips64-elf/lib -ldragon -lmikmod -lmad -lyaml -lc -lm -ldragonsys -lnosys $(LIBS) -Tn64.ld
22+
LINK_FLAGS = -O1 -L$(ROOTDIR)/lib -L$(ROOTDIR)/mips64-elf/lib -ldragon -lmad -lyaml -lc -lm -ldragonsys -lnosys $(LIBS) -Tn64.ld
2323
PROG_NAME = OS64
2424
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)
2525
ASFLAGS = -mtune=vr4300 -march=vr4300

src/sound.c

+25
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,30 @@
33
// See LICENSE file in the project root for full license information.
44
//
55

6+
#if !defined(SOUND_ENABLED)
7+
8+
void sndInit(void)
9+
{
10+
}
11+
12+
void sndPlayBGM(char* filename)
13+
{
14+
}
15+
16+
void sndStopAll(void)
17+
{
18+
}
19+
20+
void sndPlaySFX(char* filename)
21+
{
22+
}
23+
24+
void sndUpdate(void)
25+
{
26+
}
27+
28+
#else
29+
630
#include <mikmod.h>
731
#include <libdragon.h> //needed for audio_get_frequency()
832
#include "hashtable.h"
@@ -111,3 +135,4 @@ void sndUpdate(void)
111135

112136
}
113137
}
138+
#endif

0 commit comments

Comments
 (0)