Skip to content

Commit 3663bf1

Browse files
committed
Merge branch 'rc' into release
# Conflicts: # README.md
2 parents 85d76ea + 1ee23d9 commit 3663bf1

121 files changed

Lines changed: 55737 additions & 44488 deletions

File tree

Some content is hidden

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

.github/workflows/python.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
python-version: ["3.8"]
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323
- name: Run checks
@@ -31,9 +31,9 @@ jobs:
3131
python-version: ["3.x"]
3232

3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
- name: Set up Python ${{ matrix.python-version }}
36-
uses: actions/setup-python@v4
36+
uses: actions/setup-python@v5
3737
with:
3838
python-version: ${{ matrix.python-version }}
3939
- name: Run checks
@@ -47,9 +47,9 @@ jobs:
4747
python-version: ["3.x"]
4848

4949
steps:
50-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
5151
- name: Set up Python ${{ matrix.python-version }}
52-
uses: actions/setup-python@v4
52+
uses: actions/setup-python@v5
5353
with:
5454
python-version: ${{ matrix.python-version }}
5555
- name: Run checks

ASM/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $(OBJDIR):
3434
mkdir -p $@
3535

3636
$(OBJDIR)/%_bin.o: $(RESOURCEDIR)/%.bin
37-
$(OBJCOPY) -I binary -O elf32-bigmips --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@
37+
$(OBJCOPY) -I binary -O elf32-bigmips --set-section-alignment .data=8 --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@
3838
$(OBJCOPY) --redefine-sym _binary_resources_$*_bin_start=$(call UC,$*)_RESOURCE $@
3939
$(OBJCOPY) --redefine-sym _binary_resources_$*_bin_end=$(call UC,$*)_RESOURCE_END $@
4040
$(OBJCOPY) --redefine-sym _binary_resources_$*_bin_size=$(call UC,$*)_RESOURCE_SIZE $@

ASM/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,16 @@ You'll need to disable `Unique Game Save Directory` in Project64 for these to wo
5858

5959
How to use the Debug mode:
6060
- First put the DEBUG_MODE variable at 1 in debug.h.
61-
- You will then have access to a hidden menu with the following options:
61+
- Now the N64 logo sequence at the start of the game will be skipped, the L button will allow you to levitate and you will then have access to a hidden menu with the following options:
6262
- Instant warps to Dungeons, Bosses or Overworld locations
6363
- Item inventory edits
6464
- Instant age switch with the current location kept
65-
- Bunny Hood applied on
66-
The menu will appear if you press either L+R or Dpad-Up according to what you set for the menu_not_on_dup variable in debug.c.
65+
- Bunny Hood
66+
- In-game clock
67+
- Actor and overlay list
68+
- Scene flags setters
69+
The menu will appear if you press R + either L or Dpad Up.
6770
Use Dpad-Left/Dpad-Right and A/B to navigate it.
68-
The L Button will also allow you to levitate.
6971
The warps and items are easily customizable with the code at the top of debug.c.
7072
- Additionally, you can call functions to print numbers on screen, to help you debug new features.
7173
Call either draw_debug_int or draw_debug_float in your code, with the first argument being the number wanted to be displayed, and the

ASM/build.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,25 @@
124124
PAYLOAD_START = int(symbols['PAYLOAD_START']['address'], 16)
125125
PAYLOAD_END = int(symbols['PAYLOAD_END']['address'], 16)
126126
data_symbols = {}
127+
patch_symbols = {}
127128
for (name, sym) in symbols.items():
128129
if sym['type'] == 'data':
129130
addr = int(sym['address'], 16)
130131
if PAYLOAD_START <= addr < PAYLOAD_END:
131132
addr = addr - 0x80400000 + 0x03480000
133+
data_symbols[name] = {
134+
'address': f'{addr:08X}',
135+
'length': sym.get('length', 0),
136+
}
132137
else:
133-
continue
134-
data_symbols[name] = {
135-
'address': f'{addr:08X}',
136-
'length': sym.get('length', 0),
137-
}
138+
patch_symbols[name] = addr
139+
138140
with open('../data/generated/symbols.json', 'w') as f:
139141
json.dump(data_symbols, f, indent=4, sort_keys=True)
140142

143+
with open('../data/generated/patch_symbols.json', 'w') as f:
144+
json.dump(patch_symbols, f, indent=4, sort_keys=True)
145+
141146
if pj64_sym_path:
142147
pj64_sym_path = os.path.realpath(pj64_sym_path)
143148
with open(pj64_sym_path, 'w') as f:

0 commit comments

Comments
 (0)