mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 06:40:39 +00:00
(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:
parent
a489f1275a
commit
d9157c5dc7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user