mirror of
https://github.com/wiiu-env/homebrew_launcher.git
synced 2024-11-16 09:49:18 +01:00
fix bug when launching rpx files
This commit is contained in:
parent
a63171682d
commit
1a99264ab5
@ -272,8 +272,10 @@ static int LiWaitOneChunk(unsigned int * iRemainingBytes, const char *filename,
|
|||||||
if((mapOffset + blockSize) >= mem_area->size)
|
if((mapOffset + blockSize) >= mem_area->size)
|
||||||
{
|
{
|
||||||
blockSize = mem_area->size - mapOffset;
|
blockSize = mem_area->size - mapOffset;
|
||||||
|
//! this value is incremented later by blockSize, so set it to -blockSize for it to be 0 after copy
|
||||||
|
//! it makes smaller code then if(mapOffset == mem_area->size) after copy
|
||||||
|
mapOffset = -blockSize;
|
||||||
mem_area = mem_area->next;
|
mem_area = mem_area->next;
|
||||||
mapOffset = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SC0x25_KernelCopyData(load_addressPhys + rpxBlockPos, address, blockSize);
|
SC0x25_KernelCopyData(load_addressPhys + rpxBlockPos, address, blockSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user