diff options
author | LOuroboros <lunosouroboros@gmail.com> | 2021-03-28 17:29:11 +0000 |
---|---|---|
committer | LOuroboros <lunosouroboros@gmail.com> | 2021-03-28 17:29:11 +0000 |
commit | 8574f2c51e204059556a0156419fe2a5f8bf4642 (patch) | |
tree | cb6858885842e70f0d72dd22ef96843092ef9143 | |
parent | a30b53ad969308f27e18d14160cc705a67131d2d (diff) |
Created Enable the Reset RTC Feature (markdown)
-rw-r--r-- | Enable-the-Reset-RTC-Feature.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Enable-the-Reset-RTC-Feature.md b/Enable-the-Reset-RTC-Feature.md new file mode 100644 index 0000000..45ba29a --- /dev/null +++ b/Enable-the-Reset-RTC-Feature.md @@ -0,0 +1,9 @@ +Pokémon Emerald has a feature that allows you to re-set the Real Time Clock of the game. This feature is normally inaccesible, because on top of being triggered by a specific combo of keys (`B + Select + Left Arrow`), it also checks if a certain function labeled `CanResetRTC` returns a value of `TRUE`. Now, this function relies on the effect of another function, `EnableResetRTC`, which is never called anywhere in the game. + +`EnableResetRTC` only gets executed by the Mystery Event script command `enableresetrtc`, but **[unlike it happens in Pokémon Ruby and Sapphire](https://github.com/pret/pokeruby/blob/master/data/debug_mystery_event_scripts.s#L273)**, Mystery Event scripting commands go completely unused in Pokémon Emerald. + +So, why don't we just forget about checking for `CanResetRTC`, and simply let the Player reset the RTC if they press the right keys? + +To do this, we just have to **[go to the L741 of src/title_screen.c](https://github.com/pret/pokeemerald/blob/master/src/title_screen.c#L741)** and remove the `&& CanResetRTC() == TRUE` check. + +That's it. Save, build a ROM, and press `B + Select + Left Arrow` on the title screen.
\ No newline at end of file |