Skip to content

Commit

Permalink
Merge pull request #99 from JeffVi/Lockpick-1.19.10-bdk-upgrade
Browse files Browse the repository at this point in the history
Fix compile error and index 053 before 120
  • Loading branch information
suchmememanyskill authored Jul 7, 2024
2 parents 76781f6 + f504c09 commit b1460c1
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 32 deletions.
62 changes: 31 additions & 31 deletions scripts/SystemWipe.te
Original file line number Diff line number Diff line change
Expand Up @@ -129,37 +129,6 @@ if(fsexists("bis:/save/"+is[0]))
idb.add(0x00)
idb.add(0x00)

# 120 save
s=getfilesize("bis:/save/"+is[0])
s1=s&0xFF
s2=(s>>8)&0xFF
s3=(s>>16)&0xFF
s4=(s>>24)&0xFF
idb.addrange(imen)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba120)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba120)
idb.add(s1)
idb.add(s2)
idb.add(s3)
idb.add(s4)
idb.add(0x00)
idb.add(0x00)
idb.add(0x00)
idb.add(0x00)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)

if(!skip53)
{
# 53 save
Expand Down Expand Up @@ -194,6 +163,37 @@ if(fsexists("bis:/save/"+is[0]))
idb.addrange(ba0)
}

# 120 save
s=getfilesize("bis:/save/"+is[0])
s1=s&0xFF
s2=(s>>8)&0xFF
s3=(s>>16)&0xFF
s4=(s>>24)&0xFF
idb.addrange(imen)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba120)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba120)
idb.add(s1)
idb.add(s2)
idb.add(s3)
idb.add(s4)
idb.add(0x00)
idb.add(0x00)
idb.add(0x00)
idb.add(0x00)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)
idb.addrange(ba0)

idxs=readsave("bis:/save/"+is[2])
if(idxs.resize("/imkvdb.arc",idb.len())){p("imkvdb resize failed")pe()}
if(idxs.write("/imkvdb.arc",idb)){p("imkvdb write failed")pe()}
Expand Down
2 changes: 1 addition & 1 deletion source/script/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ u8 nextToken(char** inPtr, void** val) {
if (!memcmp(t.strToken, in, (t.strToken[1] == '\0') ? 1 : 2)) {
//gfx_printf("Token: '%s'\n", t.strToken);
ret = Token_Token;
*val = t.token;
*val = (void*)t.token;

if (t.strToken[1] != '\0')
in++;
Expand Down
1 change: 1 addition & 0 deletions source/script/scriptError.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "scriptError.h"
#include "compat.h"
#include <stdarg.h>
#include "../hid/hid.h"

s64 scriptCurrentLine;
u8 scriptLastError = 0;
Expand Down
1 change: 1 addition & 0 deletions source/tegraexplorer/tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <string.h>
#include "../fs/fscopy.h"
#include "../utils/utils.h"
#include <display/di.h>

extern sdmmc_storage_t sd_storage;
extern bool is_sd_inited;
Expand Down

0 comments on commit b1460c1

Please sign in to comment.