summaryrefslogtreecommitdiff
path: root/docs/tutorial/other_functions.md
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2023-04-18 18:54:32 -0400
committerGitHub <noreply@github.com>2023-04-18 18:54:32 -0400
commit3c107cb148d784e2af4a347dc78f25b1697410be (patch)
treeb67a051ee5851deec190356461b7575507c33785 /docs/tutorial/other_functions.md
parentb8af819165ea4f31f34940d59a13ef19a5aabd2f (diff)
Add `SaveInfo` substruct to `SaveContext` (#1191)
* SaveInfo * fix accesses in sram_NES.c * some more fixing * more fixes * format * fix unk * namefixer * format * bss * review * weekeventregconvert * namefixer * bss
Diffstat (limited to 'docs/tutorial/other_functions.md')
-rw-r--r--docs/tutorial/other_functions.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial/other_functions.md b/docs/tutorial/other_functions.md
index c6ac63a64..f73902ca5 100644
--- a/docs/tutorial/other_functions.md
+++ b/docs/tutorial/other_functions.md
@@ -404,7 +404,7 @@ There remains one thing we need to fix before trying to compile it, namely `*(&g
/* 0x0F5C */ u32 regionsVisited; // "area_arrival"
```
-so it's somewhere in `weekEventReg`. `0xF37 - 0xEF8 = 0x3F = 63`, and it's a byte array, so the access is actually `gSaveContext.save.weekEventReg[63] & 0x80`. Now it will compile. We also don't use `!= 0` for flag comparisons: just `if (gSaveContext.save.weekEventReg[63] & 0x80)` will do.
+so it's somewhere in `weekEventReg`. `0xF37 - 0xEF8 = 0x3F = 63`, and it's a byte array, so the access is actually `gSaveContext.save.saveInfo.weekEventReg[63] & 0x80`. Now it will compile. We also don't use `!= 0` for flag comparisons: just `if (gSaveContext.save.saveInfo.weekEventReg[63] & 0x80)` will do.
Running `./diff.py -mwo3 func_80C102D4` and scrolling down, we discover that this doesn't match!