1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-22 11:56:42 +00:00

Merge pull request #99 from JeffVi/Lockpick-1.19.10-bdk-upgrade

Fix compile error and index 053 before 120
This commit is contained in:
Sims 2024-07-07 19:16:37 +02:00 committed by GitHub
commit b1460c13cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 34 additions and 32 deletions

View file

@ -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
@ -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()}

View file

@ -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++;

View file

@ -1,6 +1,7 @@
#include "scriptError.h"
#include "compat.h"
#include <stdarg.h>
#include "../hid/hid.h"
s64 scriptCurrentLine;
u8 scriptLastError = 0;

View file

@ -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;