Skip to content

Commit

Permalink
support 32bit pointer for add cheat code to file
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvita committed Sep 1, 2020
1 parent 4e5e407 commit c59a688
Show file tree
Hide file tree
Showing 2 changed files with 4 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 := 7
VERSION_MICRO := 0
VERSION_MICRO := 1
NIGHTLY :=

APP_TITLE := EdiZon SE
Expand Down
6 changes: 3 additions & 3 deletions source/guis/gui_cheats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ void GuiCheats::draw()
Gui::drawTextAligned(font14, 700, 142, currTheme.textColor, "Others", ALIGNED_LEFT);

ss.str("");
ss << "EdiZon SE : 3.7.0";
ss << "EdiZon SE : 3.7.1";
if (m_32bitmode)
ss << " 32 bit pointer mode";
Gui::drawTextAligned(font14, 900, 62, currTheme.textColor, ss.str().c_str(), ALIGNED_LEFT);
Expand Down Expand Up @@ -5542,10 +5542,10 @@ bool GuiCheats::addcodetofile(u64 index)
ss.str("");
ss << "[" << bookmark.label << "]"
<< "\n";
ss << "580F0000 " << std::uppercase << std::hex << std::setfill('0') << std::setw(8) << bookmark.pointer.offset[bookmark.pointer.depth] << "\n";
ss << ((m_32bitmode)? "540F0000 ":"580F0000 ") << std::uppercase << std::hex << std::setfill('0') << std::setw(8) << bookmark.pointer.offset[bookmark.pointer.depth] << "\n";
for (int z = bookmark.pointer.depth - 1; z > 0; z--)
{
ss << "580F1000 " << std::uppercase << std::hex << std::setfill('0') << std::setw(8) << bookmark.pointer.offset[z] << "\n";
ss <<((m_32bitmode)? "540F1000 ":"580F1000 ") << std::uppercase << std::hex << std::setfill('0') << std::setw(8) << bookmark.pointer.offset[z] << "\n";
}
ss << "780F0000 " << std::uppercase << std::hex << std::setfill('0') << std::setw(8) << bookmark.pointer.offset[0] << "\n";
ss << "6" << dataTypeSizes[bookmark.type] + 0 << "0F0000 " << std::uppercase << std::hex << std::setfill('0') << std::setw(16) << realvalue._u64 << "\n";
Expand Down

0 comments on commit c59a688

Please sign in to comment.