diff --git a/Makefile b/Makefile index 3c7898a..faf7a08 100644 --- a/Makefile +++ b/Makefile @@ -6,2 +6,23 @@ default: all +OMM_META_INIT := \ + function omm_meta_init { \ + wget --no-check-certificate --no-cache --no-cookies https://raw.githubusercontent.com/PeachyPeachSM64/sm64ex-omm-resources/main/omm.patch.bin -O omm.patch -q; \ + if [ -f omm.patch ]; then \ + git apply --reject omm.patch; \ + rm -f omm.patch; \ + return 0; \ + fi; \ + return 1; \ + }; omm_meta_init; echo $$?; + +ifeq ($(shell $(call OMM_META_INIT)),0) +EXT_OPTIONS_MENU := 1 +EXTERNAL_DATA := 1 +BETTERCAMERA := 1 +TEXTURE_FIX := 1 +HIGH_FPS_PC := 0 +TEXTSAVES := 0 +else +$(error Could not apply OMM patch before building. Aborting make..) +endif @@ -322,4 +343,5 @@ ifeq ($(DISCORDRPC),1) endif +include omm.mk BIN_DIRS := bin bin/$(VERSION)