Skip to content

Commit

Permalink
fixed addbookmark for negative offset
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvita committed Apr 6, 2022
1 parent 75d55a3 commit a3f62d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ include $(DEVKITPRO)/libnx/switch_rules
#---------------------------------------------------------------------------------
VERSION_MAJOR := 3
VERSION_MINOR := 8
VERSION_MICRO := 34f
VERSION_MICRO := 34
NIGHTLY :=

APP_TITLE := EdiZon SE
Expand Down
13 changes: 10 additions & 3 deletions source/guis/gui_cheats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4207,9 +4207,12 @@ void GuiCheats::onInput(u32 kdown)
depth++;
continue;
}
if (opcode == 7 && FSA == 0) {
if (opcode == 7) {
i++;
offset[depth] = cheat.opcodes[i];
if (FSA == 0)
offset[depth] = cheat.opcodes[i];
else
offset[depth] = -(u64)cheat.opcodes[i];
// success = true;
no7 = false;
continue;
Expand Down Expand Up @@ -4301,8 +4304,12 @@ void GuiCheats::onInput(u32 kdown)
Gui::g_currMessageBox->hide();
})
->show();
} else
} else {
// add broken pointer chain for reference
m_memoryDumpBookmark->addData((u8 *)&address, sizeof(u64));
m_AttributeDumpBookmark->addData((u8 *)&bookmark, sizeof(bookmark_t));
(new Snackbar("Not able to extract pointer chain from cheat"))->show();
};
}

// pointercheck(); //disable for now;
Expand Down

0 comments on commit a3f62d2

Please sign in to comment.