diff options
author | FearlessTobi <thm.frey@gmail.com> | 2024-02-19 19:22:51 +0100 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2024-02-19 19:22:51 +0100 |
commit | ef5027712413705802d10c797b0f0b66375a9f58 (patch) | |
tree | 979cf4d365ca5d7f0e63abdd3ecf476f93d4b21b /src/core/file_sys/fsa | |
parent | Address review comments (diff) | |
download | yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar.gz yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar.bz2 yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar.lz yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar.xz yuzu-ef5027712413705802d10c797b0f0b66375a9f58.tar.zst yuzu-ef5027712413705802d10c797b0f0b66375a9f58.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/fsa/fs_i_directory.h | 2 | ||||
-rw-r--r-- | src/core/file_sys/fsa/fs_i_file.h | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/core/file_sys/fsa/fs_i_directory.h b/src/core/file_sys/fsa/fs_i_directory.h index fc0407d01..c8e895eab 100644 --- a/src/core/file_sys/fsa/fs_i_directory.h +++ b/src/core/file_sys/fsa/fs_i_directory.h @@ -56,7 +56,7 @@ private: next_entry_index += actual_entries; *out_count = actual_entries; - std::memcpy(out_entries, entries.data(), range_size); + std::memcpy(out_entries, begin, range_size); R_SUCCEED(); } diff --git a/src/core/file_sys/fsa/fs_i_file.h b/src/core/file_sys/fsa/fs_i_file.h index 8fdd71c80..1188ae8ca 100644 --- a/src/core/file_sys/fsa/fs_i_file.h +++ b/src/core/file_sys/fsa/fs_i_file.h @@ -125,10 +125,8 @@ protected: private: Result DoRead(size_t* out, s64 offset, void* buffer, size_t size, const ReadOption& option) { - std::vector<u8> output = backend->ReadBytes(size, offset); - - *out = output.size(); - std::memcpy(buffer, output.data(), size); + const auto read_size = backend->Read(static_cast<u8*>(buffer), size, offset); + *out = read_size; R_SUCCEED(); } |