mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
(更新:Akabane Jumpei)
Game領域の中途半端なサイズのデータを読んだときに、ケツの方のデータが正しく読めていなかったのを修正。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1355 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
2f7387e82e
commit
1fd9cf93f5
@ -869,7 +869,7 @@ static HotSwState ReadImageReturnErrorCode(void* dest, s32 offset, s32 length, v
|
||||
dest = (u8*)dest + (length - remain_length);
|
||||
offset += length - remain_length;
|
||||
|
||||
retval = ReadPageGame((CardBootData*)arg, page_offset, page_buffer, 512);
|
||||
retval = ReadPageGame((CardBootData*)arg, offset, page_buffer, 512);
|
||||
|
||||
if (retval != HOTSW_SUCCESS)
|
||||
{
|
||||
@ -940,7 +940,7 @@ static void ReadCardData(u32 src, u32 dest, u32 size)
|
||||
// --- Game Segment
|
||||
else if(src >= HOTSW_GAME_AREA_OFS){
|
||||
// KeyTable2‚Ş<E2809A>ݒ肳‚ę‚Ä‚˘‚éŹęŤ‡
|
||||
if(s_cbData.pBootSegBuf->rh.s.twl_card_keytable_area_rom_offset){
|
||||
if(s_cbData.isLoadTypeTwl){
|
||||
u32 keyTable2Adr = (u32)s_cbData.pBootSegBuf->rh.s.twl_card_keytable_area_rom_offset * TWLCARD_BORDER_OFFSET;
|
||||
u32 Secure2Adr = keyTable2Adr + HOTSW_SECURE2_AREA_OFS;
|
||||
u32 Game2Adr = keyTable2Adr + HOTSW_GAME2_AREA_OFS;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user