mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-08 13:11:54 +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:
commit
b1460c13cb
4 changed files with 34 additions and 32 deletions
|
@ -129,37 +129,6 @@ if(fsexists("bis:/save/"+is[0]))
|
||||||
idb.add(0x00)
|
idb.add(0x00)
|
||||||
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)
|
if(!skip53)
|
||||||
{
|
{
|
||||||
# 53 save
|
# 53 save
|
||||||
|
@ -194,6 +163,37 @@ if(fsexists("bis:/save/"+is[0]))
|
||||||
idb.addrange(ba0)
|
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])
|
idxs=readsave("bis:/save/"+is[2])
|
||||||
if(idxs.resize("/imkvdb.arc",idb.len())){p("imkvdb resize failed")pe()}
|
if(idxs.resize("/imkvdb.arc",idb.len())){p("imkvdb resize failed")pe()}
|
||||||
if(idxs.write("/imkvdb.arc",idb)){p("imkvdb write failed")pe()}
|
if(idxs.write("/imkvdb.arc",idb)){p("imkvdb write failed")pe()}
|
||||||
|
|
|
@ -232,7 +232,7 @@ u8 nextToken(char** inPtr, void** val) {
|
||||||
if (!memcmp(t.strToken, in, (t.strToken[1] == '\0') ? 1 : 2)) {
|
if (!memcmp(t.strToken, in, (t.strToken[1] == '\0') ? 1 : 2)) {
|
||||||
//gfx_printf("Token: '%s'\n", t.strToken);
|
//gfx_printf("Token: '%s'\n", t.strToken);
|
||||||
ret = Token_Token;
|
ret = Token_Token;
|
||||||
*val = t.token;
|
*val = (void*)t.token;
|
||||||
|
|
||||||
if (t.strToken[1] != '\0')
|
if (t.strToken[1] != '\0')
|
||||||
in++;
|
in++;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "scriptError.h"
|
#include "scriptError.h"
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include "../hid/hid.h"
|
||||||
|
|
||||||
s64 scriptCurrentLine;
|
s64 scriptCurrentLine;
|
||||||
u8 scriptLastError = 0;
|
u8 scriptLastError = 0;
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "../fs/fscopy.h"
|
#include "../fs/fscopy.h"
|
||||||
#include "../utils/utils.h"
|
#include "../utils/utils.h"
|
||||||
|
#include <display/di.h>
|
||||||
|
|
||||||
extern sdmmc_storage_t sd_storage;
|
extern sdmmc_storage_t sd_storage;
|
||||||
extern bool is_sd_inited;
|
extern bool is_sd_inited;
|
||||||
|
|
Loading…
Reference in a new issue