SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 5b33cebca9e646edb9bd2b28b13712cfdac0fdcd parent 6178ff2a783f592e02effcecb27c8bbb9b60acfd Author: Lior Halphon <LIJI32@gmail.com> Date: Thu, 29 Aug 2024 01:26:13 +0300 Fix iOS and lib builds Diffstat:
| M | Core/gb.h | 2 | ++ |
| M | Makefile | 12 | +++++++++++- |
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/Core/gb.h b/Core/gb.h @@ -9,6 +9,7 @@ extern "C" { #include <stdalign.h> #include <time.h> +#ifndef GB_DISABLE_CHEAT_SEARCH #ifdef GB_DISABLE_CHEATS #define GB_DISABLE_CHEAT_SEARCH #else @@ -16,6 +17,7 @@ extern "C" { #define GB_DISABLE_CHEAT_SEARCH #endif #endif +#endif #include "model.h" #include "defs.h" diff --git a/Makefile b/Makefile @@ -71,6 +71,7 @@ ifneq ($(DISABLE_DEBUGGER),) CFLAGS += -DGB_DISABLE_DEBUGGER CPPP_FLAGS += -DGB_DISABLE_DEBUGGER CORE_FILTER += Core/debugger.c Core/sm83_disassembler.c Core/symbol_hash.c +DISABLE_CHEAT_SEARCH := 1 else CPPP_FLAGS += -UGB_DISABLE_DEBUGGER endif @@ -79,10 +80,19 @@ ifneq ($(DISABLE_CHEATS),) CFLAGS += -DGB_DISABLE_CHEATS CPPP_FLAGS += -DGB_DISABLE_CHEATS CORE_FILTER += Core/cheats.c +DISABLE_CHEAT_SEARCH := 1 else CPPP_FLAGS += -UGB_DISABLE_CHEATS endif +ifneq ($(DISABLE_CHEAT_SEARCH),) +CFLAGS += -DGB_DISABLE_CHEAT_SEARCH +CPPP_FLAGS += -DGB_DISABLE_CHEAT_SEARCH +CORE_FILTER += Core/cheat_search.c +else +CPPP_FLAGS += -UGB_DISABLE_CHEAT_SEARCH +endif + ifneq ($(CORE_FILTER)$(DISABLE_TIMEKEEPING),) ifneq ($(MAKECMDGOALS),lib) $(error SameBoy features can only be disabled when compiling the 'lib' target) @@ -268,7 +278,7 @@ ifeq ($(SYSROOT),) $(error Could not find an iOS SDK) endif CFLAGS += -arch arm64 -miphoneos-version-min=$(IOS_MIN) -isysroot $(SYSROOT) -IAppleCommon -DGB_DISABLE_DEBUGGER -CORE_FILTER += Core/debugger.c Core/sm83_disassembler.c Core/symbol_hash.c +CORE_FILTER += Core/debugger.c Core/sm83_disassembler.c Core/symbol_hash.c Core/cheat_search.c LDFLAGS += -arch arm64 OCFLAGS += -x objective-c -fobjc-arc -Wno-deprecated-declarations -isysroot $(SYSROOT) LDFLAGS += -miphoneos-version-min=$(IOS_MIN) -isysroot $(SYSROOT)
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.