mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-05 23:02:58 +12:00
[APT] Add shared font
This commit is contained in:
parent
c8a4c7d7fa
commit
cad046d9a8
7 changed files with 262187 additions and 14 deletions
|
@ -43,11 +43,11 @@ void Memory::reset() {
|
|||
for (auto& e : sharedMemBlocks) {
|
||||
e.mapped = false;
|
||||
|
||||
std::optional<u32> possiblePaddr = findPaddr(e.size);
|
||||
std::optional<u32> possiblePaddr = findPaddr(e.size); // Find a physical FCRAM index to allocate for the shared memory block
|
||||
if (!possiblePaddr.has_value()) Helpers::panic("Failed to find paddr for shared memory block");
|
||||
|
||||
e.paddr = possiblePaddr.value();
|
||||
if (!reserveMemory(e.paddr, e.size)) {
|
||||
if (!reserveMemory(e.paddr, e.size)) { // Actually reserve the memory
|
||||
Helpers::panic("Failed to reserve memory for shared memory block");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue