Improve CIA installing speed.

This commit is contained in:
StackZ
2020-01-27 20:32:30 +01:00
parent dfda5c5088
commit 0ef5d2c5ab
+2 -2
View File
@@ -116,8 +116,8 @@ Result installCia(const char * ciaPath)
return ret;
}
u32 toRead = 0x1000;
u8 * cia_buffer = malloc(toRead);
u32 toRead = 0x20000;
u8 * cia_buffer = memalign(0x1000, toRead);
for (u64 startSize = size; size != 0; size -= toRead) {
if (size < toRead) toRead = size;
FSFILE_Read(fileHandle, &bytes, startSize-size, cia_buffer, toRead);