diff options
author | Lioncash <mathew1800@gmail.com> | 2022-11-23 19:25:14 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-11-23 19:43:20 +0100 |
commit | 97f273e94e83a679f42faa9c81916a1c058112e1 (patch) | |
tree | e2a2777ae3bec31b544516988fae36e8080150ff /src/core/hle/service/filesystem | |
parent | hle_ipc: Add helper functions for getting number of buffer elements (diff) | |
download | yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar.gz yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar.bz2 yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar.lz yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar.xz yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar.zst yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.zip |
Diffstat (limited to 'src/core/hle/service/filesystem')
-rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index c08274ef9..fbb16a7da 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp @@ -277,7 +277,7 @@ private: LOG_DEBUG(Service_FS, "called."); // Calculate how many entries we can fit in the output buffer - const u64 count_entries = ctx.GetWriteBufferSize() / sizeof(FileSys::Entry); + const u64 count_entries = ctx.GetWriteBufferNumElements<FileSys::Entry>(); // Cap at total number of entries. const u64 actual_entries = std::min(count_entries, entries.size() - next_entry_index); @@ -543,7 +543,7 @@ public: LOG_DEBUG(Service_FS, "called"); // Calculate how many entries we can fit in the output buffer - const u64 count_entries = ctx.GetWriteBufferSize() / sizeof(SaveDataInfo); + const u64 count_entries = ctx.GetWriteBufferNumElements<SaveDataInfo>(); // Cap at total number of entries. const u64 actual_entries = std::min(count_entries, info.size() - next_entry_index); |