summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkipcode66 <kipcode66@gmail.com>2022-07-24 11:36:04 -0400
committerkipcode66 <kipcode66@gmail.com>2022-07-24 11:36:04 -0400
commita47df6ac1066d02bce85692d69cdfb218670e42d (patch)
tree8c041a7aab0925d36bd5d046ecfb751909c64c81
parent51de2094dbab21002073fe8fd5106f40767ad78f (diff)
fix: max address watch/editor0.5fixes
-rw-r--r--src/menus/memory_editor_menu.cpp6
-rw-r--r--src/menus/watches_menu.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/menus/memory_editor_menu.cpp b/src/menus/memory_editor_menu.cpp
index 8dbad6a..46b6b31 100644
--- a/src/menus/memory_editor_menu.cpp
+++ b/src/menus/memory_editor_menu.cpp
@@ -40,12 +40,12 @@ void MemoryEditorMenu::drawMemEditor() {
}
if (GZ_getButtonRepeat(GZPad::DPAD_UP)) {
if (l_idxPlace == 0) {
- mAddressIndex = 0x81FFFFFF;
+ mAddressIndex = 0x817FFF88;
} else {
mAddressIndex += (0x10000000 >> (l_idxPlace * 4));
}
- if (mAddressIndex > 0x81FFFFFF) {
- mAddressIndex = 0x81FFFFFF;
+ if (mAddressIndex > 0x817FFF88) {
+ mAddressIndex = 0x817FFF88;
}
}
if (GZ_getButtonRepeat(GZPad::DPAD_DOWN)) {
diff --git a/src/menus/watches_menu.cpp b/src/menus/watches_menu.cpp
index 13c33e1..6847e2a 100644
--- a/src/menus/watches_menu.cpp
+++ b/src/menus/watches_menu.cpp
@@ -114,12 +114,12 @@ void WatchesMenu::drawMemoryLines() {
}
if (GZ_getButtonRepeat(GZPad::DPAD_UP)) {
if (l_addrIdx == 3 && g_watches[i].address >= 0x81000000) {
- g_watches[i].address = 0x81FFFFFF;
+ g_watches[i].address = 0x817FFFFF;
} else if (l_addrIdx <= 9 && l_addrIdx >= 3) {
g_watches[i].address += 1 << ((9 - l_addrIdx) * 4);
}
- if (g_watches[i].address > 0x81FFFFFF) {
- g_watches[i].address = 0x81FFFFFF;
+ if (g_watches[i].address > 0x817FFFFF) {
+ g_watches[i].address = 0x817FFFFF;
}
}
if (GZ_getButtonRepeat(GZPad::DPAD_DOWN)) {