haze: improve host-to-device file transfer performance

This commit is contained in:
Liam 2023-04-17 15:16:41 -04:00
parent af08ec6ffd
commit e88ca3f054

View file

@ -723,6 +723,9 @@ namespace haze {
s64 offset = 0;
R_TRY(m_fs.SetFileSize(std::addressof(file), 0));
/* Expand to the needed size. */
R_TRY(m_fs.SetFileSize(std::addressof(file), data_header.length));
/* Begin writing to the filesystem. */
while (true) {
/* Read as many bytes as we can. */