mirror of
https://github.com/PabloMK7/citra.git
synced 2025-10-11 20:10:03 +00:00
Memory: move block operations into class
This commit is contained in:
parent
323990d402
commit
2582d64fb3
13 changed files with 174 additions and 159 deletions
|
@ -113,7 +113,7 @@ void Module::CompletionEventCallBack(u64 port_id, s64) {
|
|||
if (copy_length <= 0) {
|
||||
break;
|
||||
}
|
||||
Memory::WriteBlock(*port.dest_process, dest_ptr, src_ptr, copy_length);
|
||||
system.Memory().WriteBlock(*port.dest_process, dest_ptr, src_ptr, copy_length);
|
||||
dest_ptr += copy_length;
|
||||
dest_size_left -= copy_length;
|
||||
src_ptr += original_width;
|
||||
|
@ -125,8 +125,8 @@ void Module::CompletionEventCallBack(u64 port_id, s64) {
|
|||
LOG_ERROR(Service_CAM, "The destination size ({}) doesn't match the source ({})!",
|
||||
port.dest_size, buffer_size);
|
||||
}
|
||||
Memory::WriteBlock(*port.dest_process, port.dest, buffer.data(),
|
||||
std::min<std::size_t>(port.dest_size, buffer_size));
|
||||
system.Memory().WriteBlock(*port.dest_process, port.dest, buffer.data(),
|
||||
std::min<std::size_t>(port.dest_size, buffer_size));
|
||||
}
|
||||
|
||||
port.is_receiving = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue