File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ INCLUDES := include
3030DATA := data
3131GRAPHICS := gfx
3232
33+ GBARUNNER3_PATH ?= DEFAULT
34+
3335# ---------------------------------------------------------------------------------
3436# options for code generation
3537# ---------------------------------------------------------------------------------
@@ -41,6 +43,12 @@ CFLAGS := -g -Wall -O2 \
4143 -ffast-math \
4244 $(ARCH )
4345
46+ ifeq ($(GBARUNNER3_PATH ) ,TWLMENU)
47+ CFLAGS += -DWITH_TWLMENU
48+ else ifeq ($(GBARUNNER3_PATH),AOS)
49+ CFLAGS += -DWITH_AOS
50+ endif
51+
4452CFLAGS += $(INCLUDE ) -DARM9
4553CXXFLAGS := $(CFLAGS ) -fno-rtti -fno-exceptions
4654
Original file line number Diff line number Diff line change 2727#include < string>
2828#include < vector>
2929
30- #ifndef GBARUNNER3_PATH
30+ #ifdef WITH_AOS
3131#define GBARUNNER3_PATH " /__rpg/APP/GBARunner3.nds"
3232#endif
33+ #ifdef WITH_TWLMENU
34+ #define GBARUNNER3_PATH " /_nds/TWiLightMenu/emulators/GBARunner3.nds"
35+ #endif
36+ #ifndef GBARUNNER3_PATH
37+ #define GBARUNNER3_PATH " /GBARunner3.nds"
38+ #endif
3339
3440/* Convert a file path of any type (e.g. .nds or .argv) into a path to the NDS
3541 * file to be opened. The returned path may be absolute or relative to the
You can’t perform that action at this time.
0 commit comments