Minor stuff
This commit is contained in:
parent
7a3d15c48b
commit
a3fd55036a
@ -49,7 +49,7 @@ diff -uNr a/source/brahma.c b/source/brahma.c
|
|||||||
+ if (p) {
|
+ if (p) {
|
||||||
+ fseek(p , 0, SEEK_END);
|
+ fseek(p , 0, SEEK_END);
|
||||||
+ psize = ftell(p);
|
+ psize = ftell(p);
|
||||||
+ if (psize < 39 && psize > 5) {
|
+ if (psize > 5 && psize < 39) {
|
||||||
+ char path[psize + 1];
|
+ char path[psize + 1];
|
||||||
+
|
+
|
||||||
+ fseek(p, 0, SEEK_SET);
|
+ fseek(p, 0, SEEK_SET);
|
||||||
|
@ -297,8 +297,8 @@ static void sha(void *res, const void *src, u32 size, u32 mode)
|
|||||||
static u8 __attribute__((aligned(4))) nandCtr[AES_BLOCK_SIZE];
|
static u8 __attribute__((aligned(4))) nandCtr[AES_BLOCK_SIZE];
|
||||||
static u8 nandSlot;
|
static u8 nandSlot;
|
||||||
static u32 fatStart;
|
static u32 fatStart;
|
||||||
static bool didShaHashBackup = false;
|
|
||||||
static u8 __attribute__((aligned(4))) shaHashBackup[SHA_256_HASH_SIZE];
|
static u8 __attribute__((aligned(4))) shaHashBackup[SHA_256_HASH_SIZE];
|
||||||
|
static bool didShaHashBackup = false;
|
||||||
|
|
||||||
void ctrNandInit(void)
|
void ctrNandInit(void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user