(WiiU) Read up to 128k on the no-CFW unaligned slowpath

it may be the slowpath, but 16k is a bit rich
This commit is contained in:
Ash Logan 2021-08-14 20:29:24 +10:00
parent a489f1275a
commit d9157c5dc7

View File

@ -292,8 +292,8 @@ static ssize_t sd_fat_write_r (struct _reent *r, void* fd, const char *ptr, size
}
} else {
size_t len_aligned = FS_ALIGN(len);
if(len_aligned > 0x4000)
len_aligned = 0x4000;
if(len_aligned > 128*1024)
len_aligned = 128*1024;
unsigned char *tmpBuf = (unsigned char *)memalign(FS_ALIGNMENT, len_aligned);
if(!tmpBuf) {
@ -362,8 +362,8 @@ static ssize_t sd_fat_read_r (struct _reent *r, void* fd, char *ptr, size_t len)
}
} else {
size_t len_aligned = FS_ALIGN(len);
if(len_aligned > 0x4000)
len_aligned = 0x4000;
if(len_aligned > 128*1024)
len_aligned = 128*1024;
unsigned char *tmpBuf = (unsigned char *)memalign(FS_ALIGNMENT, len_aligned);
if(!tmpBuf) {