mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-07 19:58:49 -04:00
Address review comments pt. 2
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user