Skip to content

Commit

Permalink
14
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvita committed Oct 6, 2020
1 parent 2934fe0 commit 0261e01
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 4 deletions.
Binary file modified server/source/noexs/054e4f4558454000.zip
Binary file not shown.
Binary file modified server/source/noexs/054e4f4558454000/exefs.nsp
Binary file not shown.
Binary file modified server/source/noexs/exefs.nsp
Binary file not shown.
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 (147)
#define VER_PATCH (148)

#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.
25 changes: 22 additions & 3 deletions server/source/noexs/source/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,27 @@ static Result _getbookmark(Gecko::Context& ctx){
return 0;
}
//0x1C
static Result _dmnt_pause(Gecko::Context& ctx){
return dmntchtPauseCheatProcess();
static Result _putbookmark(Gecko::Context& ctx){
// printf("_putbookmark\n");
g_memdumpFile = fopen("/switch/EdiZon/DirectTransfer.bmk", "w+b");
if (g_memdumpFile == nullptr)
return FILE_ACCESS_ERROR;
WRITE_CHECKED(ctx, 0);
u32 size, len, index;
index = 0;
// do {
READ_CHECKED(ctx, size);
while (size > 0) {
len = (size < GECKO_BUFFER_SIZE) ? size : GECKO_BUFFER_SIZE;
READ_BUFFER_CHECKED(ctx, outbuffer, len);
fseek(g_memdumpFile, index, SEEK_SET);
fwrite(outbuffer, 1, len, g_memdumpFile);
index += len;
size -= len;
}
// } while (size > 0);
fclose(g_memdumpFile);
return 0;
}
//0x1D
static Result _dmnt_resume(Gecko::Context& ctx){
Expand All @@ -755,7 +774,7 @@ Result cmd_decode(Gecko::Context& ctx, int cmd){
_querymem_multi, _current_pid, _attached_pid, _list_pids,
_get_titleid, _disconnect, _readmem_multi, _set_breakpoint, _freeze_address,
_search_local, _fetch_result, _detach_dmnt, _dump_ptr, _attach_dmnt,
_getbookmark, _dmnt_pause, _dmnt_resume};
_getbookmark, _putbookmark, _dmnt_resume};
Result rc = 0;
if(cmds[cmd]){
rc = cmds[cmd](ctx);
Expand Down

0 comments on commit 0261e01

Please sign in to comment.