mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
NANDからROMファイルを読み込む際、1024バイトずつFS_ReadFileを呼んでいたが、もう必要ないので丸ごと読むように変更
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@707 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
070561f806
commit
b4649d969f
@ -389,7 +389,7 @@ OS_TPrintf("RebootSystem failed: cant seek file(0)\n");
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
readLen = ReadFile(file, header, (s32)sizeof(header));
|
readLen = FS_ReadFile(file, header, (s32)sizeof(header));
|
||||||
|
|
||||||
if( readLen != (s32)sizeof(header) )
|
if( readLen != (s32)sizeof(header) )
|
||||||
{
|
{
|
||||||
@ -475,7 +475,7 @@ OS_TPrintf("RebootSystem failed: cant seek file(%d)\n", source[i]);
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
readLen = ReadFile(file, (void *)destaddr[i], (s32)len);
|
readLen = FS_ReadFile(file, (void *)destaddr[i], (s32)len);
|
||||||
|
|
||||||
if( readLen != (s32)len )
|
if( readLen != (s32)len )
|
||||||
{
|
{
|
||||||
@ -803,7 +803,7 @@ static AuthResult SYSMi_AuthenticateNTRDownloadAppHeader( TitleProperty *pBootTi
|
|||||||
}
|
}
|
||||||
OS_TPrintf("Authenticate : total %d ms.\n", OS_TicksToMilliSeconds(OS_GetTick() - start) );
|
OS_TPrintf("Authenticate : total %d ms.\n", OS_TicksToMilliSeconds(OS_GetTick() - start) );
|
||||||
|
|
||||||
return AUTH_RESULT_AUTHENTICATE_FAILED;
|
return AUTH_RESULT_SUCCEEDED;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ヘッダ認証
|
// ヘッダ認証
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user