move TOAPLAN_SOUND_SAMPLES_HACK to makefile option

This commit is contained in:
Barry Harris 2013-01-09 20:34:12 +00:00
parent 59d46431d9
commit a0e44d736c
5 changed files with 11 additions and 4 deletions

View File

@ -33,6 +33,9 @@ BUILD_X86_ASM = 1
# Include 7-zip support
INCLUDE_7Z_SUPPORT = 1
# Include Toaplan sound sample hacks for games without MCU dumps
TOAPLAN_SOUND_SAMPLES_HACK = 1
# Include symbols and other debug information in the executable
#SYMBOL = 1

View File

@ -278,6 +278,10 @@ ifdef INCLUDE_7Z_SUPPORT
DEF := $(DEF) -DINCLUDE_7Z_SUPPORT
endif
ifdef TOAPLAN_SOUND_SAMPLES_HACK
DEF := $(DEF) -DTOAPLAN_SOUND_SAMPLES_HACK
endif
ifdef LSB_FIRST
DEF := $(DEF) -DLSB_FIRST
endif

View File

@ -195,6 +195,10 @@ ifdef INCLUDE_7Z_SUPPORT
DEF := $(DEF) /DINCLUDE_7Z_SUPPORT
endif
ifdef TOAPLAN_SOUND_SAMPLES_HACK
DEF := $(DEF) /DTOAPLAN_SOUND_SAMPLES_HACK
endif
ifdef LSB_FIRST
DEF := $(DEF) /DLSB_FIRST
endif

View File

@ -1,8 +1,6 @@
#include "toaplan.h"
#include "samples.h"
#define TOAPLAN_SOUND_SAMPLES_HACK 1 // move this to makefile
#define REFRESHRATE 60
#define VBLANK_LINES (32)

View File

@ -1,8 +1,6 @@
#include "toaplan.h"
#include "samples.h"
#define TOAPLAN_SOUND_SAMPLES_HACK 1 // move this to makefile
#define REFRESHRATE 57.59
#define VBLANK_LINES (32)