You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
refresh 4
This commit is contained in:
@@ -135,70 +135,39 @@ $(BUILD_DIR)/actors/common1.elf: SEGMENT_ADDRESS := 0x03000000
|
||||
# Level Rules
|
||||
# --------------------------------------
|
||||
|
||||
# Using these rules:
|
||||
# When defining a level, define the 3 variables needed and copy the rules
|
||||
# as-is.
|
||||
$(BUILD_DIR)/levels/%/leveldata.elf: SEGMENT_ADDRESS := 0x07000000
|
||||
|
||||
# TODO: Generate these rules from the level configs?
|
||||
|
||||
define level_rules =
|
||||
$(1)_SEG7_FILES := $$(patsubst %.png,%.inc.c,$$(notdir $$(wildcard levels/$(1)/*.png)))
|
||||
$$(BUILD_DIR)/levels/$(1)/leveldata.o: $$(addprefix $$(BUILD_DIR)/levels/$(1)/,$$($(1)_SEG7_FILES))
|
||||
$$(BUILD_DIR)/levels/$(1)/leveldata.elf: SEGMENT_ADDRESS := $(2)
|
||||
$$(BUILD_DIR)/levels/$(1)/leveldata.elf: TEXTURE_BIN := $(3)
|
||||
$(1)_SEG7_FILES := $$(patsubst %.png,%.inc.c,$$(wildcard levels/$(1)/*.png))
|
||||
$$(BUILD_DIR)/levels/$(1)/leveldata.o: $$(addprefix $$(BUILD_DIR)/,$$($(1)_SEG7_FILES))
|
||||
$$(BUILD_DIR)/levels/$(1)/leveldata.elf: TEXTURE_BIN := $(2)
|
||||
endef
|
||||
|
||||
$(eval $(call level_rules,bbh,0x07000000,spooky)) # BBH (Big Boo's Haunt)
|
||||
$(eval $(call level_rules,ccm,0x07000000,snow)) # CCM (Cool Cool Mountain)
|
||||
$(eval $(call level_rules,castle_inside,0x07000000,inside)) # Castle Inside (Inside Princess Peach's Castle)
|
||||
$(eval $(call level_rules,hmc,0x07000000,cave))# HMC (Hazy Maze Cave)
|
||||
$(eval $(call level_rules,ssl,0x07000000,generic)) # SSL (Shifting Sand Land)
|
||||
$(eval $(call level_rules,bob,0x07000000,generic)) # BOB (Bob-Omb Battlefield)
|
||||
$(eval $(call level_rules,sl,0x07000000,snow)) # SL (Snowman's Land)
|
||||
$(eval $(call level_rules,wdw,0x07000000,grass)) # WDW (Wet Dry World)
|
||||
$(eval $(call level_rules,jrb,0x07000000,water)) # JRB (Jolly Roger Bay)
|
||||
$(eval $(call level_rules,thi,0x07000000,grass)) # THI (Tiny Huge Island)
|
||||
$(eval $(call level_rules,ttc,0x07000000,machine)) # TTC (Tick Tock Clock)
|
||||
$(eval $(call level_rules,rr,0x07000000,sky)) # RR (Rainbow Ride)
|
||||
$(eval $(call level_rules,castle_grounds,0x07000000,outside)) # Castle Grounds (Outside Princess Peach's Castle)
|
||||
$(eval $(call level_rules,bitdw,0x07000000,sky)) # BitDW (Bowser in the Dark World)
|
||||
$(eval $(call level_rules,vcutm,0x07000000,outside)) # VCUTM (Vanish Cap under the Moat)
|
||||
$(eval $(call level_rules,bitfs,0x07000000,sky)) # BITFS (Bowser in the Fire Sea)
|
||||
$(eval $(call level_rules,sa,0x07000000,inside)) # SA (The Secret Aquarium)
|
||||
$(eval $(call level_rules,bits,0x07000000,sky)) # BITS (Bowser in the Sky)
|
||||
$(eval $(call level_rules,lll,0x07000000,fire)) # LLL (Lethal Lava Land)
|
||||
$(eval $(call level_rules,ddd,0x07000000,water)) # DDD (Dire Dire Docks)
|
||||
$(eval $(call level_rules,wf,0x07000000,grass)) # WF (Whomp's Fortress)
|
||||
$(eval $(call level_rules,castle_courtyard,0x07000000,outside)) # Castle Courtyard (The Courtyard of Princess Peach's Castle)
|
||||
$(eval $(call level_rules,pss,0x07000000,mountain)) # PSS (The Princess's Secret Slide)
|
||||
$(eval $(call level_rules,cotmc,0x07000000,cave)) # COTMC (Cavern of the Metal Cap)
|
||||
$(eval $(call level_rules,totwc,0x07000000,sky)) # TOTWC (Tower of the Wing Cap)
|
||||
$(eval $(call level_rules,bowser_1,0x07000000,generic)) # BOWSER_1 (Bowser in the Dark World [Boss Area])
|
||||
$(eval $(call level_rules,wmotr,0x07000000,generic)) # WMOTR (Wing Mario over the Rainbow)
|
||||
$(eval $(call level_rules,bowser_2,0x07000000,fire)) # BOWSER_2 (Bowser in the Fire Sea [Boss Area])
|
||||
$(eval $(call level_rules,bowser_3,0x07000000,generic)) # BOWSER_3 (Bowser in the Sky [Boss Area])
|
||||
$(eval $(call level_rules,totwc,0x07000000,sky)) # TOTWC (Tower of the Wing Cap)
|
||||
$(eval $(call level_rules,ttm,0x07000000,mountain)) # TTM (Tall Tall Mountain)
|
||||
$(eval $(call level_rules,intro,0x07000000,generic)) # Intro (Super Mario 64 Logo)
|
||||
$(eval $(call level_rules,menu,0x07000000,generic)) # Menu (File Select)
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(MAKECMDGOALS),distclean)
|
||||
$(BUILD_DIR)/level_rules.mk: levels/level_rules.mk levels/level_defines.h
|
||||
$(CPP) $(VERSION_CFLAGS) -I . -o $@ $<
|
||||
include $(BUILD_DIR)/level_rules.mk
|
||||
endif
|
||||
endif
|
||||
|
||||
# Ending cake texture override
|
||||
ifeq ($(VERSION),eu)
|
||||
ending_SEG7_FILES := $(patsubst %.png,%.inc.c,$(notdir $(wildcard levels/ending/eu*.png levels/ending/*eu.png)))
|
||||
$(BUILD_DIR)/levels/ending/leveldata.o: $(addprefix $(BUILD_DIR)/levels/ending/,$(ending_SEG7_FILES))
|
||||
$(BUILD_DIR)/levels/ending/leveldata.elf: SEGMENT_ADDRESS := 0x07000000
|
||||
$(BUILD_DIR)/levels/ending/leveldata.elf: TEXTURE_BIN := generic
|
||||
# --------------------------------------
|
||||
# Extra Level Rules
|
||||
# --------------------------------------
|
||||
$(eval $(call level_rules,intro,generic)) # Intro (Super Mario 64 Logo)
|
||||
$(eval $(call level_rules,menu,generic)) # Menu (File Select)
|
||||
|
||||
# --------------------------------------
|
||||
# Cake Texture Rules
|
||||
# --------------------------------------
|
||||
|
||||
# Ending cake textures are generated in a special way
|
||||
$(BUILD_DIR)/levels/ending/cake_eu.inc.c: levels/ending/cake_eu.png
|
||||
$(SKYCONV) --type cake-eu --split $^ $(BUILD_DIR)/levels/ending
|
||||
else
|
||||
ending_SEG7_FILES := cake.inc.c
|
||||
$(BUILD_DIR)/levels/ending/leveldata.o: $(BUILD_DIR)/levels/ending/cake.inc.c
|
||||
$(BUILD_DIR)/levels/ending/leveldata.elf: SEGMENT_ADDRESS := 0x07000000
|
||||
$(BUILD_DIR)/levels/ending/leveldata.elf: TEXTURE_BIN := generic
|
||||
|
||||
$(BUILD_DIR)/levels/ending/cake.inc.c: levels/ending/cake.png
|
||||
$(SKYCONV) --type cake --split $^ $(BUILD_DIR)/levels/ending
|
||||
endif
|
||||
|
||||
# --------------------------------------
|
||||
# Texture Bin Rules
|
||||
@@ -257,9 +226,9 @@ $(BUILD_DIR)/bin/mountain.elf: SEGMENT_ADDRESS := 0x09000000
|
||||
$(BUILD_DIR)/bin/grass.elf: SEGMENT_ADDRESS := 0x09000000
|
||||
|
||||
# EU segment 19 translations
|
||||
$(BUILD_DIR)/bin/$(VERSION)/translation_de.elf: SEGMENT_ADDRESS := 0x19000000
|
||||
$(BUILD_DIR)/bin/$(VERSION)/translation_en.elf: SEGMENT_ADDRESS := 0x19000000
|
||||
$(BUILD_DIR)/bin/$(VERSION)/translation_fr.elf: SEGMENT_ADDRESS := 0x19000000
|
||||
$(BUILD_DIR)/bin/eu/translation_de.elf: SEGMENT_ADDRESS := 0x19000000
|
||||
$(BUILD_DIR)/bin/eu/translation_en.elf: SEGMENT_ADDRESS := 0x19000000
|
||||
$(BUILD_DIR)/bin/eu/translation_fr.elf: SEGMENT_ADDRESS := 0x19000000
|
||||
|
||||
# --------------------------------------
|
||||
# Skybox Rules
|
||||
|
||||
Reference in New Issue
Block a user