Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hackxor #153

Open
wants to merge 102 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
7a682ce
My mods todate
tomvita Jul 19, 2020
3188b73
fixed the typo TID vs PID
tomvita Jul 19, 2020
dfb27b6
go
tomvita Jul 20, 2020
90df6cc
go
tomvita Jul 20, 2020
091f52e
Move splash screen to before scanning saves to avoid black screen
tomvita Jul 20, 2020
4de1727
with splash change and added abort and plus key to start pointer sear…
tomvita Jul 20, 2020
8aecba4
partial offset save implementation done
tomvita Jul 20, 2020
ed52cb6
bookmark OK
tomvita Jul 21, 2020
550fc7f
Bookmark edit label OK
tomvita Jul 21, 2020
c35845d
bookmark delete done
tomvita Jul 21, 2020
5c1c993
bug fix on higher order byte not clear for less than 64 bit type
tomvita Jul 21, 2020
b99e0df
Add bookmark from code done
tomvita Jul 21, 2020
c8bb465
Update README.md
tomvita Jul 22, 2020
66607e6
Update README.md
tomvita Jul 22, 2020
1169b36
Update README.md
tomvita Jul 22, 2020
5b5777b
Minor bug fixes
tomvita Jul 22, 2020
d179752
rebase 1st half
tomvita Jul 22, 2020
ee5e831
ready for rebasing pointer chain
tomvita Jul 23, 2020
1b67c10
rebase of cheat code done, now to write code to file
tomvita Jul 23, 2020
342d3fc
Update README.md
tomvita Jul 23, 2020
ecb9766
Write code back to file
tomvita Jul 24, 2020
03de083
Cheat code writeback done
tomvita Jul 24, 2020
1fc8d62
Merge branch 'master' of https://github.com/tomvita/EdiZon
tomvita Jul 24, 2020
ad0fad1
refactored pointersearch 2 function the same as pointersearch ready f…
tomvita Jul 25, 2020
fe9316f
fix bookmark add from pointer search bug
tomvita Jul 25, 2020
0b4e839
Tool bug? Strange that this change solved the crash
tomvita Jul 25, 2020
84d63cb
use ZL as shift key
tomvita Jul 25, 2020
3e8016d
Dynamic bookmark and pointer chain resolution display
tomvita Jul 26, 2020
7dfe321
Update README.md
tomvita Jul 26, 2020
889b0c3
Update README.md
tomvita Jul 26, 2020
0a9f3e8
static code type support for transfer between bookmark and cheat code
tomvita Jul 27, 2020
253f3b8
Merge branch 'master' of https://github.com/tomvita/EdiZon
tomvita Jul 27, 2020
1ec36a0
No more compiler warnings
tomvita Jul 27, 2020
26951a6
pause resume and status for pointer search done
tomvita Jul 27, 2020
1df417d
check for wait for file delete complete
tomvita Jul 28, 2020
683fa5f
Update README.md
tomvita Jul 29, 2020
76e790a
Update README.md
tomvita Jul 29, 2020
cb0552c
Update README.md
tomvita Jul 29, 2020
8e0f9e9
Update README.md
tomvita Jul 29, 2020
053507c
Update README.md
tomvita Jul 29, 2020
7fbedeb
Update README.md
tomvita Jul 29, 2020
192963a
Update README.md
tomvita Jul 29, 2020
a0529e9
Update README.md
tomvita Jul 29, 2020
0cb2d02
Update README.md
tomvita Jul 29, 2020
7db6970
Update README.md
tomvita Jul 29, 2020
b4098b3
Update README.md
tomvita Jul 29, 2020
53168c9
Update README.md
tomvita Jul 29, 2020
a6028d1
Sort sources by distance and limite Max num of offsets, preserve sear…
tomvita Jul 30, 2020
1b31c55
PC dump done
tomvita Jul 31, 2020
54cc9d9
export to pointersearcher SE
tomvita Aug 3, 2020
ce4ce31
Import Bookmark done
tomvita Aug 4, 2020
2da3e33
Update README.md
tomvita Aug 5, 2020
cc445f1
Update README.md
tomvita Aug 5, 2020
ca0f7c8
ACNH use #define HAVESAVE false
tomvita Aug 6, 2020
974ae37
Minor UI bug fix
tomvita Aug 6, 2020
f54bfd7
Merge branch 'master' of https://github.com/tomvita/EdiZon
tomvita Aug 6, 2020
0b763c3
Stability improvement on known value search
tomvita Aug 7, 2020
7f97f39
reloadcheats & dumpcodetofile
tomvita Aug 10, 2020
f57ce4f
reloadcheatsfromfile written, not tested, decided to continue with mo…
tomvita Aug 10, 2020
6bbabdb
noicon config
tomvita Aug 10, 2020
e0a3458
Change
tomvita Aug 10, 2020
26932ce
dumpcodetofile bug fix
tomvita Aug 11, 2020
ce67d2a
Bookmark added from memory editor inherit pointer chain that was used…
tomvita Aug 12, 2020
ba9cdf2
include code static with MAIN search
tomvita Aug 12, 2020
c41604f
bug fix
tomvita Aug 12, 2020
a173590
show version and some bug fix
tomvita Aug 15, 2020
577c721
ZL + B ForceCloseCheatProcess
tomvita Aug 15, 2020
e68410f
ZL+B toggle dmnt
tomvita Aug 15, 2020
db9d721
fix a splash screen display bug
tomvita Aug 16, 2020
a0b58e0
fix a splash screen display bug
tomvita Aug 16, 2020
9628a13
Merge branch 'master' of https://github.com/tomvita/EdiZon
tomvita Aug 16, 2020
7a31405
UI improvements
tomvita Aug 16, 2020
0534cc0
UI bug fixs and improvements
tomvita Aug 18, 2020
187f03b
cheat code delete
tomvita Aug 18, 2020
d1d8e70
UI fix
tomvita Aug 18, 2020
ab22925
UI fix
tomvita Aug 18, 2020
70c8db6
show conditional button
tomvita Aug 21, 2020
ec08aec
simple conditional button add/ remove/ edit
tomvita Aug 21, 2020
405b3b4
update version no.
tomvita Aug 21, 2020
b1e6256
Update README.md
tomvita Aug 21, 2020
6cfa20c
Check total opcodes when toggling cheat
tomvita Aug 27, 2020
9470b31
Merge branch 'master' of https://github.com/tomvita/EdiZon
tomvita Aug 27, 2020
4e5e407
enable 32 bit pointer mode
tomvita Aug 30, 2020
c59a688
support 32bit pointer for add cheat code to file
tomvita Sep 1, 2020
3282efd
Icon for ACNH
tomvita Sep 1, 2020
ff25455
show save for last title used only
tomvita Sep 2, 2020
dc01c40
bug fix
tomvita Sep 2, 2020
3a21c4d
PC dump with compression
tomvita Sep 10, 2020
7bc9412
Update README.md
tomvita Sep 18, 2020
d64fc28
fixed title info for mario 3d
tomvita Sep 19, 2020
e5cb93e
Merge branch 'master' of https://github.com/tomvita/EdiZon
tomvita Sep 19, 2020
6fb2147
Update README.md
tomvita Sep 25, 2020
ead8118
Update README.md
tomvita Sep 25, 2020
c0eb700
envIsSyscallHinted
tomvita Sep 26, 2020
178abe8
allow function without dmnt
tomvita Sep 26, 2020
05c75b0
Merge branch 'master' of https://github.com/tomvita/EdiZon
tomvita Sep 26, 2020
a7a0766
mask out zero and pointers from DIFF search
tomvita Sep 27, 2020
a892cd7
Not masking out zero for DIFF
tomvita Sep 27, 2020
baf0ad9
xor hack
tomvita Sep 28, 2020
5f27122
search don't stop
tomvita Sep 28, 2020
6ec9dd4
bookmark bug
tomvita Sep 30, 2020
53aa6f2
fix pcdump bug
tomvita Oct 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
UI improvements
tomvita committed Aug 16, 2020
commit 7a314054d4b0df6777c89d401b943bad0937493c
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ include $(DEVKITPRO)/libnx/switch_rules
#---------------------------------------------------------------------------------
VERSION_MAJOR := 3
VERSION_MINOR := 6
VERSION_MICRO := 6
VERSION_MICRO := 7
NIGHTLY :=

APP_TITLE := EdiZon SE
44 changes: 26 additions & 18 deletions source/guis/gui_cheats.cpp
Original file line number Diff line number Diff line change
@@ -386,10 +386,10 @@ GuiCheats::GuiCheats() : Gui()

buildIDStr = ss.str();

if (m_cheatCnt == 0)
m_menuLocation = CANDIDATES;
if (m_memoryDump->size() == 0)
m_menuLocation = CHEATS;
if (m_cheatCnt == 0)
m_menuLocation = CANDIDATES;

appletSetMediaPlaybackState(true);
}
@@ -475,9 +475,9 @@ void GuiCheats::draw()
if (m_menuLocation == CHEATS)
{
if (m_memoryDump1 == nullptr)
Gui::drawTextAligned(font20, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 50, currTheme.textColor, "\uE0E4 BM toggle \uE0E3 Search RAM \uE0E0 Cheat on/off \uE0E1 Quit", ALIGNED_RIGHT);
Gui::drawTextAligned(font20, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 50, currTheme.textColor, "\uE0E6+\uE0E1 Detach \uE0E4 BM toggle \uE0E3 Search RAM \uE0E0 Cheat on/off \uE0E1 Quit", ALIGNED_RIGHT);
else
Gui::drawTextAligned(font20, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 50, currTheme.textColor, "\uE0E4 BM toggle \uE0EF BM add \uE0E3 Search RAM \uE0E0 Cheat on/off \uE0E1 Quit", ALIGNED_RIGHT);
Gui::drawTextAligned(font20, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 50, currTheme.textColor, "\uE0E6+\uE0E1 Detach \uE0E4 BM toggle \uE0EF BM add \uE0E3 Search RAM \uE0E0 Cheat on/off \uE0E1 Quit", ALIGNED_RIGHT);
}
else if (m_memoryDump1 == nullptr)
{
@@ -494,7 +494,8 @@ void GuiCheats::draw()
{
if (m_memoryDump->size() > 0)
{
Gui::drawTextAligned(font20, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 50, currTheme.textColor, "\uE0E4 BM toggle \uE0EF BM add \uE0F0 Reset search \uE0E3 Search again \uE0E2 Freeze value \uE0E0 Edit value \uE0E1 Quit", ALIGNED_RIGHT);
Gui::drawTextAligned(font14, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 65, currTheme.textColor, "\uE0E6+\uE0E1 Detach debugger \uE0E4 BM toggle \uE0E5 Hex Mode \uE0EF BM add \uE0F0 Reset search \uE0E3 Search again \uE0E2 Freeze value \uE0E0 Edit value \uE0E1 Quit", ALIGNED_RIGHT);
Gui::drawTextAligned(font14, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 35, currTheme.textColor, "\uE0E6+\uE0E7 Page Up \uE0E7 Page Down \uE105 Memory Editor", ALIGNED_RIGHT);
}
else
Gui::drawTextAligned(font20, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 50, currTheme.textColor, "\uE0F0 Reset search \uE0E1 Quit", ALIGNED_RIGHT);
@@ -504,7 +505,9 @@ void GuiCheats::draw()
{
if (m_memoryDumpBookmark->size() > 0)
{
Gui::drawTextAligned(font20, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 50, currTheme.textColor, "\uE0E4 BM toggle \uE0EF BM label \uE0E3 Add Cheat \uE0F0 Delete BM \uE0E2 Freeze value \uE0E0 Edit value \uE0E1 Quit", ALIGNED_RIGHT);
Gui::drawTextAligned(font14, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 65, currTheme.textColor, "\uE0E6+\uE0E1 Detach \uE0E4 BM toggle \uE0E5 Hex Mode \uE0EF BM label \uE0E3 Add Cheat \uE0F0 Delete BM \uE0E2 Freeze value \uE0E7 Page Down \uE0E0 Edit value \uE0E1 Quit", ALIGNED_RIGHT);
Gui::drawTextAligned(font14, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 35, currTheme.textColor, "\uE0E6+\uE0E4 \uE0E6+\uE0E5 Change Type \uE0E6+\uE0F0 Refresh Bookmark \uE0E6+\uE0EF Import Bookmark \uE0E6+\uE0E3 Pointer Search \uE0E6+\uE0E7 Page Up \uE105 Memory Editor", ALIGNED_RIGHT);
//
}
else
Gui::drawTextAligned(font20, Gui::g_framebuffer_width - 50, Gui::g_framebuffer_height - 50, currTheme.textColor, "\uE0E4 BM toggle \uE0E1 Quit", ALIGNED_RIGHT);
@@ -531,7 +534,7 @@ void GuiCheats::draw()
Gui::drawTextAligned(font14, 700, 142, currTheme.textColor, "Others", ALIGNED_LEFT);

ss.str("");
ss << "EdiZon SE : 3.6.6";
ss << "EdiZon SE : 3.6.7";
Gui::drawTextAligned(font14, 900, 62, currTheme.textColor, ss.str().c_str(), ALIGNED_LEFT);
ss.str("");
ss << "BASE : 0x" << std::uppercase << std::setfill('0') << std::setw(10) << std::hex << m_addressSpaceBaseAddr; //metadata.address_space_extents.size
@@ -642,7 +645,7 @@ void GuiCheats::draw()
}
}
else if (m_mainBaseAddr == 0)
Gui::drawTextAligned(font24, Gui::g_framebuffer_width / 2, Gui::g_framebuffer_height / 2 + 50, currTheme.textColor, "Dmnt detached from game process, press ZL+B to reattach,\n \n relaunch EdiZon SE to access this game", ALIGNED_CENTER);
Gui::drawTextAligned(font24, Gui::g_framebuffer_width / 2, Gui::g_framebuffer_height / 2 + 50, currTheme.textColor, "Dmnt detached from game process, press ZL+B to attach,\n \n relaunch EdiZon SE to access this game", ALIGNED_CENTER);
else if (m_cheatsPresent && m_memoryDump->size() == 0)
Gui::drawTextAligned(font24, Gui::g_framebuffer_width / 2, Gui::g_framebuffer_height / 2 + 50, currTheme.textColor, "Cheats for this game present but title version or region doesn't match!", ALIGNED_CENTER);

@@ -876,7 +879,7 @@ void GuiCheats::drawSearchPointerMenu()
if (cursorBlinkCnt++ % 60 > 10 && m_selectedEntry == 5)
Gui::drawRectangled(622 + strWidth, 360, 3, 35, currTheme.highlightColor);

Gui::drawTextAligned(font20, Gui::g_framebuffer_width - 100, Gui::g_framebuffer_height - 100, currTheme.textColor, "\uE0EF Start Search \uE0E1 Abort \uE0E0 Edit", ALIGNED_RIGHT);
Gui::drawTextAligned(font20, Gui::g_framebuffer_width - 100, Gui::g_framebuffer_height - 100, currTheme.textColor, "\uE0E6+\uE0E3 Make Dump for pointersearcher SE \uE0EF Start Search \uE0E1 Abort \uE0E4 \uE0E5 Edit Value", ALIGNED_RIGHT);

// if (m_selectedEntry == 3)
// Gui::drawRectangled(Gui::g_framebuffer_width / 2 - 155, 345, 310, 90, currTheme.highlightColor);
@@ -1192,7 +1195,12 @@ void GuiCheats::onInput(u32 kdown)
printf("starting PC dump\n");
m_searchType = SEARCH_TYPE_UNSIGNED_64BIT;
m_searchRegion = SEARCH_REGION_HEAP_AND_MAIN;
Gui::beginDraw();
Gui::drawRectangle(70, 420, 1150, 65, currTheme.backgroundColor);
Gui::drawTextAligned(font20, 70, 420, currTheme.textColor, "Making Dump for pointersearcher SE", ALIGNED_LEFT);
Gui::endDraw();
GuiCheats::searchMemoryAddressesPrimary2(m_debugger, m_searchValue[0], m_searchValue[1], m_searchType, m_searchMode, m_searchRegion, &m_memoryDump, m_memoryInfo);
(new Snackbar("Dump for pointersearcher SE completed"))->show();
// PCdump();
}

@@ -1324,7 +1332,7 @@ void GuiCheats::onInput(u32 kdown)
m_searchValue[1]._u64 = 0x8000000000;
}

if ((kdown & KEY_PLUS) && m_menuLocation == CHEATS && (m_cheatCnt > 0) && (m_memoryDump1 != nullptr))
if ((kdown & KEY_PLUS) && m_menuLocation == CHEATS && (m_cheatCnt > 0) && (m_memoryDump1 != nullptr) && !(kheld & KEY_ZL))
{
// printf("start adding cheat to bookmark\n");
// m_cheatCnt
@@ -5264,14 +5272,14 @@ bool GuiCheats::dumpcodetofile()
buildIDStr << std::nouppercase << std::hex << std::setfill('0') << std::setw(2) << (u16)m_buildID[i];
filebuildIDStr << EDIZON_DIR "/" << buildIDStr.str() << ".txt";
}
std::stringstream realCheatPath;
{
realCheatPath << "/atmosphere/contents/" << std::uppercase << std::hex << std::setfill('0') << std::setw(sizeof(u64) * 2) << m_debugger->getRunningApplicationTID();
mkdir(realCheatPath.str().c_str(), 0777);
realCheatPath << "/cheats/";
mkdir(realCheatPath.str().c_str(), 0777);
realCheatPath << buildIDStr.str() << ".txt";
}
// std::stringstream realCheatPath;
// {
// realCheatPath << "/atmosphere/contents/" << std::uppercase << std::hex << std::setfill('0') << std::setw(sizeof(u64) * 2) << m_debugger->getRunningApplicationTID();
// mkdir(realCheatPath.str().c_str(), 0777);
// realCheatPath << "/cheats/";
// mkdir(realCheatPath.str().c_str(), 0777);
// realCheatPath << buildIDStr.str() << ".txt";
// }
FILE *pfile;
pfile = fopen(filebuildIDStr.str().c_str(), "w");
std::stringstream SS;