diff options
author | bunnei <bunneidev@gmail.com> | 2022-11-25 09:38:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 09:38:17 +0100 |
commit | 64965cc658a6266ddb9878ffd53bd69e0a0f5b79 (patch) | |
tree | 495b63ec25d2b5e8d5888004e5bca0dcdf67704b /src/core/hle/service/filesystem/fsp_srv.cpp | |
parent | Merge pull request #9194 from FernandoS27/yfc-fermi2d (diff) | |
parent | service: Make use of buffer element count helpers (diff) | |
download | yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.gz yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.bz2 yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.lz yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.xz yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.zst yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.zip |
Diffstat (limited to '')
-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); |