Skip to content

Commit d825506

Browse files
authored
Merge pull request #703 from BlueAnthem37510/master
Make map layouts compatible with FEBuilder
2 parents 339eac1 + 2ccecc6 commit d825506

File tree

211 files changed

+190
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+190
-106
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ tools/agbcc
7373
*.lz
7474
*.fk
7575
data/banim/*.bin
76+
graphics/map/layout/*.bin
7677

7778
*.feimg1.bin
7879
*.feimg2.bin

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ MID2AGB := tools/mid2agb/mid2agb$(EXE)
3434
TEXTENCODE := tools/textencode/textencode$(EXE)
3535
JSONPROC := tools/jsonproc/jsonproc$(EXE)
3636
FETSATOOL := scripts/gfxtools/tsa_generator.py
37+
MARTOMAP := scripts/mar_to_map.py
3738

3839
ifeq ($(UNAME),Darwin)
3940
SED := sed -i ''
@@ -59,6 +60,7 @@ DATA_SUBDIR = data
5960
DATA_SRC_SUBDIR = src/data
6061
SAMPLE_SUBDIR = sound/direct_sound_samples
6162
MID_SUBDIR = sound/songs/midi
63+
MAP_LAYOUT_SUBDIR = graphics/map/layout
6264

6365
ROM := fireemblem8.gba
6466
ELF := $(ROM:.gba=.elf)
@@ -109,6 +111,7 @@ clean:
109111
$(RM) -f data/banim/*.bin data/banim/*.o data/banim/*.lz data/banim/*.bak
110112
# Remove converted sound samples
111113
$(RM) -f $(SAMPLE_SUBDIR)/*.bin
114+
$(RM) -f $(MAP_LAYOUT_SUBDIR)/*.bin
112115
# Remove converted songs
113116
$(RM) -f $(MID_SUBDIR)/*.s
114117
$(RM) -f $(AUTO_GEN_TARGETS)
@@ -166,6 +169,7 @@ include json_data_rules.mk
166169
%.lz: % ; $(GBAGFX) $< $@
167170
%.rl: % ; $(GBAGFX) $< $@
168171
%.fk: % ; ./scripts/compressor.py $< fk
172+
%.bin: %.mar ; $(MARTOMAP) $< $@
169173
sound/%.bin: sound/%.aif ; $(AIF2PCM) $< $@
170174

171175
%.4bpp.h: %.4bpp
@@ -255,9 +259,10 @@ endif
255259
.SECONDEXPANSION:
256260
$(ASM_OBJECTS): %.o: %.s $$(data_dep)
257261
$(AS) $(ASFLAGS) -g $< -o $@
262+
%.lz:$(MAP_LAYOUT_SUBDIR)/%.bin ; $(GBAGFX) $< $@
258263

259264
# Don't delete intermediate files
260265
.SECONDARY:
261266

262267
# debug print, to use, call "make print-(your label here)"
263-
print-% : ; $(info $* is a $(flavor $*) variable set to [$($*)]) @true
268+
print-% : ; $(info $* is a $(flavor $*) variable set to [$($*)]) @true

0 commit comments

Comments
 (0)