mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-23 13:04:50 +00:00
haze: improve host-to-device file transfer performance
This commit is contained in:
parent
af08ec6ffd
commit
e88ca3f054
1 changed files with 3 additions and 0 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue