ams_mitm: Implement emummc Nintendo folder redirection
This commit is contained in:
1 parent
733f2b3cdd
commit
746dbfe018
78 files changed
+2190
-187
No files matched your search
@@ -19,7 +19,7 @@ namespace ams::dd {
|
||||
|
||||
uintptr_t QueryIoMapping(uintptr_t phys_addr, size_t size) {
|
||||
u64 virtual_addr;
|
||||
const u64 aligned_addr = util::AlignDown(phys_addr, 0x1000);
|
||||
const u64 aligned_addr = util::AlignDown(phys_addr, os::MemoryPageSize);
|
||||
const size_t offset = phys_addr - aligned_addr;
|
||||
const u64 aligned_size = size + offset;
|
||||
R_TRY_CATCH(svcQueryIoMapping(&virtual_addr, aligned_addr, aligned_size)) {
|
||||
|
||||
Reference in new issue
Block a user