mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-21 18:20:05 +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
src/core/hle/kernel
|
@ -120,8 +120,8 @@ void Process::Run(s32 main_thread_priority, u32 stack_size) {
|
|||
auto MapSegment = [&](CodeSet::Segment& segment, VMAPermission permissions,
|
||||
MemoryState memory_state) {
|
||||
HeapAllocate(segment.addr, segment.size, permissions, memory_state, true);
|
||||
Memory::WriteBlock(*this, segment.addr, codeset->memory->data() + segment.offset,
|
||||
segment.size);
|
||||
kernel.memory.WriteBlock(*this, segment.addr, codeset->memory->data() + segment.offset,
|
||||
segment.size);
|
||||
};
|
||||
|
||||
// Map CodeSet segments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue