You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add some missing Savemap fields, introduce fix_structs script (#15)
This PR does several things:
1. Renames `_work` to `Savemap` and fills in some missing fields in the
struct
2. Adds a `--fix-structs` optional flag (can make it enabled by default
later if you see value in it) that will automatically fix references to
Savemap in the decompiled code
I've tested this on two world functions as a demonstraction of the above
flag. This is what the script outputs (no manual adjustment necessary)
```c
void func_800B77F4(s32 arg0)
{
Savemap.countdown_timer_seconds = arg0;
D_80116278 = 1;
Savemap.memory_bank_1[95] = 1;
}
void func_800B7820(void)
{
D_80116278 = 0;
Savemap.memory_bank_1[95] = 0;
}
```
I've tried to bundle this with this PR but the build was failing with
checksum errors, I don't know how to fix it though 🙂
0 commit comments