-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmnsg.dump_context.toml
More file actions
25 lines (20 loc) · 1004 Bytes
/
Copy pathmnsg.dump_context.toml
File metadata and controls
25 lines (20 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Config file for Mystical Ninja Starring Goemon (USA) Recompilation.
# For use with the --dump-context flag of the N64Recomp tool.
[input]
entrypoint = 0x80000400
output_func_path = "RecompiledFuncs"
elf_path = "mnsg.elf"
relocatable_sections_path = "mnsg.overlays.txt"
bss_section_suffix = "_bss"
[patches]
stubs = [
]
ignored = [
]
# When osAiGetLength returns a number that exceeds the target amount of samples per frame, the calculation (target samples per frame - osAiGetLength()) will result in a negative number.
# When the clamping takes place to prevent a number of bytes that is too small, it doesn't take into account the negative number that resulted from the calculation.
# Not doing this results in a negative number being given to osAiSetNextBuffer causing a massive memory leak and crash (because a signed negative number is being read as unsigned).
[[patches.instruction]]
func = "func_80038210_38E10"
vram = 0x80038290
value = 0x00E3082A # sltu $at, $a3, $v1 -> slt $at, $a3, $v1