Skip to content

Commit 43db8cc

Browse files
committed
Move around files
1 parent a23632a commit 43db8cc

Some content is hidden

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

90 files changed

+351
-319
lines changed

.gitignore

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@
77
*.aps
88
/obj/
99
/bin/
10-
/tables/overworld/*.yaml
11-
/tables/dungeon/*.yaml
12-
/tables/img/
13-
/tables/old/
14-
/tables/zelda3.sfc
15-
/tables/zelda3.smc
10+
/assets/overworld/*.yaml
11+
/assets/dungeon/*.yaml
12+
/assets/img/
13+
/assets/old/
14+
/zelda3.sfc
15+
/zelda3.smc
1616
/saves/*.sav
1717
/saves/sram.dat
1818
/saves/sram.bak
1919
/zelda3
2020
__pycache__
21-
/*.o
21+
/src/*.o
2222
/*.exe
2323
/*.out
2424
/snes/*.o
2525
/msu/
2626
/tmp/
27-
/tables/zelda3_assets.dat
27+
/zelda3_assets.dat
2828
/SDL2.dll
2929
/zelda3.*.ini
3030
/zelda3.wiki

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
TARGET_EXEC:=zelda3
22
ROM:=tables/zelda3.sfc
3-
SRCS:=$(wildcard *.c snes/*.c) third_party/gl_core/gl_core_3_1.c third_party/opus-1.3.1-stripped/opus_decoder_amalgam.c
3+
SRCS:=$(wildcard src/*.c snes/*.c) third_party/gl_core/gl_core_3_1.c third_party/opus-1.3.1-stripped/opus_decoder_amalgam.c
44
OBJS:=$(SRCS:%.c=%.o)
55
PYTHON:=/usr/bin/env python3
6-
CFLAGS:=$(if $(CFLAGS),$(CFLAGS),-O2 -Werror)
6+
CFLAGS:=$(if $(CFLAGS),$(CFLAGS),-O2 -Werror) -I .
77
CFLAGS:=${CFLAGS} $(shell sdl2-config --cflags) -DSYSTEM_VOLUME_MIXER_AVAILABLE=0
88

99
ifeq (${OS},Windows_NT)
@@ -16,23 +16,23 @@ endif
1616

1717
.PHONY: all clean clean_obj clean_gen
1818

19-
all: $(TARGET_EXEC) tables/zelda3_assets.dat
19+
all: $(TARGET_EXEC) zelda3_assets.dat
2020
$(TARGET_EXEC): $(OBJS) $(RES)
2121
$(CC) $^ -o $@ $(LDFLAGS) $(SDLFLAGS)
2222
%.o : %.c
2323
$(CC) -c $(CFLAGS) $< -o $@
2424

25-
$(RES): platform/win32/zelda3.rc
25+
$(RES): src/platform/win32/zelda3.rc
2626
@echo "Generating Windows resources"
2727
@$(WINDRES) $< -O coff -o $@
2828

29-
tables/zelda3_assets.dat:
29+
zelda3_assets.dat:
3030
@echo "Extracting game resources"
31-
@cd tables; $(PYTHON) restool.py --extract-from-rom -r ../$(ROM)
31+
$(PYTHON) assets/restool.py --extract-from-rom
3232

3333
clean: clean_obj clean_gen
3434
clean_obj:
3535
@$(RM) $(OBJS) $(TARGET_EXEC)
3636
clean_gen:
37-
@$(RM) $(RES) tables/zelda3_assets.dat tables/*.txt tables/*.png tables/sprites/*.png tables/*.yaml
37+
@$(RM) $(RES) zelda3_assets.dat tables/zelda3_assets.dat tables/*.txt tables/*.png tables/sprites/*.png tables/*.yaml
3838
@rm -rf tables/__pycache__ tables/dungeon tables/img tables/overworld tables/sound

README.md

Lines changed: 9 additions & 11 deletions
File renamed without changes.
File renamed without changes.

tables/compile_resources.py renamed to assets/compile_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ def write_assets_to_file(print_header = False):
809809
file_data += b'\0'
810810
file_data += v
811811

812-
open('zelda3_assets.dat', 'wb').write(file_data)
812+
open('../zelda3_assets.dat', 'wb').write(file_data)
813813

814814
def main(args):
815815
print_all(args)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)