Skip to content

Commit

Permalink
144 support pointer dump for pointers in main
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvita committed Oct 1, 2020
1 parent c81ff4e commit e598cfe
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/source/noexs/include/gecko.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#define VER_MAJOR (1)
#define VER_MINOR (1)
#define VER_PATCH (143)
#define VER_PATCH (144)

#define GECKO_BUFFER_SIZE (2048 * 32)
#define GECKO_BUFFER_SIZE2 (2048 * 4)
Expand Down
Binary file modified server/source/noexs/noexs.nso
Binary file not shown.
Binary file modified server/source/noexs/noexs.nsp
Binary file not shown.
3 changes: 2 additions & 1 deletion server/source/noexs/source/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ static Result process(Gecko::Context &ctx, u64 m_start, u64 m_end) {
// screening
for (u32 i = 0; i < len-4; i += 4) {
to = *reinterpret_cast<u64 *>(&ctx.buffer[i]);
if (to >= m_heap_start && to <= m_heap_end) {
if (to != 0)
if ((to >= m_heap_start && to <= m_heap_end) || (to >= m_main_start && to <= m_main_end)) {
from = addr + i;
// Fill buffer
*reinterpret_cast<u64 *>(&outbuffer[outbuffer_offset + out_index]) = from;
Expand Down

0 comments on commit e598cfe

Please sign in to comment.