Skip to content

Commit

Permalink
146 fix a small bug when bookmark file was locked
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvita committed Oct 4, 2020
1 parent f29b22d commit 0850421
Show file tree
Hide file tree
Showing 7 changed files with 4 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 (145)
#define VER_PATCH (146)

#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.
6 changes: 3 additions & 3 deletions server/source/noexs/source/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,14 +699,14 @@ static Result _dump_ptr(Gecko::Context& ctx){
//0x1B
static Result _getbookmark(Gecko::Context& ctx){
// printf("_getbookmark\n");
u8 cont = 1;
if (access("/switch/EdiZon/memdumpbookmark.dat", F_OK) != 0) {
s32 count = 0;
WRITE_CHECKED(ctx, count);
WRITE_CHECKED(ctx, 0)
READ_CHECKED(ctx, cont);
return FILE_ACCESS_ERROR;
}
g_memdumpFile = fopen("/switch/EdiZon/memdumpbookmark.dat", "r+b");
u32 size, len, index;
u8 cont = 1;

fseek(g_memdumpFile, 0, SEEK_END);
size = (ftell(g_memdumpFile) - HEADERSIZE);
Expand Down

0 comments on commit 0850421

Please sign in to comment.