Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a makefile target that generates a dolphin map file for on each ini target. #123

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ PLAYBACK := playback.json
NETPLAY_INI := Output/Netplay/GALE01r2.ini
PLAYBACK_INI := Output/Playback/GALE01r2.ini
ONLINE_INI := Output/Online/online.txt
NETPLAY_MAP := Output/Netplay/GALE01
PLAYBACK_MAP := Output/Playback/GALE01

# GCT output for Nintendont
# to add a new json just create a new var with the json name
Expand Down Expand Up @@ -41,6 +43,7 @@ CONSOLE := $(CONSOLE_UCF) $(CONSOLE_UCF_STEALTH) $(CONSOLE_UCF_0
GECKO_INJECTIONS := $(NETPLAY) $(CONSOLE_CORE) $(CONSOLE)
INI_TARGETS := $(ONLINE_INI) $(NETPLAY_INI) $(PLAYBACK_INI) \
$(CONSOLE_CORE_PORTA) $(CONSOLE_CORE_PORTB) $(CONSOLE)
MAP_TARGETS := $(NETPLAY_MAP) $(PLAYBACK_MAP)
.PHONY: $(INI_TARGETS) clean
all: $(INI_TARGETS)
ini: $(INI_TARGETS)
Expand Down Expand Up @@ -74,11 +77,19 @@ $(PLAYBACK_INI): $(PLAYBACK)
# -----------------------------------------------------------------------------
# Target for injection lists
list:
for json in $(GECKO_INJECTIONS); do\
@for json in $(GECKO_INJECTIONS); do\
gecko list -i $${json} -o Output/InjectionLists/list_$${json}; \
done
@echo ""

# -----------------------------------------------------------------------------
# Target for map files
map:
@for map in $(MAP_TARGETS); do\
python gecko2map.py $${map}r2.ini -o $${map}.map -c Output/Maps/GALX.map; \
done


# -----------------------------------------------------------------------------
clean:
rm -f $(INI_TARGETS)
Loading
Loading