encounter / decomp-toolkit

A GameCube & Wii decompilation toolkit
Apache License 2.0
115 stars 16 forks source link

[BUG] Handwritten addresses are interpreted as pointers #52

Closed Yanis002 closed 6 months ago

Yanis002 commented 6 months ago

Repository URL

https://github.com/Yanis42/oot-gc-dtk

Game Name

Zelda: Ocarina of Time - Master Quest and Collector's Edition N64 Emulator

Game Version

Any

Description

dtk is interpreting N64 addresses written in code as pointers, this makes the assembly harder to understand once decompiled (and it's giving a fake diff), the current workaround is to use noreloc (which is what I used on the systemSetupGameALL symbol)

to find these addresses in the source files you can look for calls of cpuSetCodeHack

encounter commented 6 months ago

In release v0.8.3, the block_relocations option was added.