mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-06 16:49:11 +00:00
Improve CIA installing speed.
This commit is contained in:
+2
-2
@@ -116,8 +116,8 @@ Result installCia(const char * ciaPath)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 toRead = 0x1000;
|
u32 toRead = 0x20000;
|
||||||
u8 * cia_buffer = malloc(toRead);
|
u8 * cia_buffer = memalign(0x1000, toRead);
|
||||||
for (u64 startSize = size; size != 0; size -= toRead) {
|
for (u64 startSize = size; size != 0; size -= toRead) {
|
||||||
if (size < toRead) toRead = size;
|
if (size < toRead) toRead = size;
|
||||||
FSFILE_Read(fileHandle, &bytes, startSize-size, cia_buffer, toRead);
|
FSFILE_Read(fileHandle, &bytes, startSize-size, cia_buffer, toRead);
|
||||||
|
|||||||
Reference in New Issue
Block a user