Skip to content

Commit b82b1ef

Browse files
BenjaminSoelbergBrianPugh
authored andcommitted
Added an option to remove the annoying second beep in TIME/CLOCK on Zelda devices
1 parent 1665d22 commit b82b1ef

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This repo contains custom code as well as a patching utility to add additional f
2828
* See [the mario document for more information](docs/mario.md).
2929

3030
### Zelda (`PATCH_PARAMS="--device=zelda"`)
31-
* No extra features currently implemented, just compatible with retro-go
31+
* Ability to remove the second beep in TIME/CLOCK via `--no-beep`
3232
* External flash savings to come in the future.
3333
* See [the zelda document for more information](docs/zelda.md).
3434

patches/zelda.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ def argparse(self, parser):
116116
help="Override LoZ2 ROM with your own file.",
117117
)
118118

119+
group.add_argument(
120+
"--no-beep",
121+
action="store_true",
122+
help="Remove the second beep in TIME/CLOCK.",
123+
)
119124
self.args = parser.parse_args()
120125
return self.args
121126

@@ -356,6 +361,10 @@ def patch(self):
356361
self.internal.nop(0x1653A, 1)
357362
self.internal.nop(0x1653C, 1)
358363

364+
if self.args.no_beep:
365+
# Disable TIME/CLOCK second beep
366+
self.external.nop(0x0032002c, 4)
367+
359368
if False:
360369
# This doesn't quite work yet
361370
# I think RWData stuff probably needs to be updated

0 commit comments

Comments
 (0)