more C++-ification
This commit is contained in:
1 parent
062b52c607
commit
fa9f911620
13 files changed
+36
-30
No files matched your search
@@ -16,15 +16,18 @@
|
||||
*/
|
||||
|
||||
#include <switch.h>
|
||||
#include <switch.hpp>
|
||||
|
||||
#include "../file/file_utils.hpp"
|
||||
|
||||
using namespace nx;
|
||||
|
||||
Result QueryMemoryMapping(u64 *virtaddr, u64 physaddr, u64 size) {
|
||||
if (hosversionAtLeast(10, 0, 0)) {
|
||||
u64 out_size;
|
||||
return svcQueryMemoryMapping(virtaddr, &out_size, physaddr, size);
|
||||
return svc::QueryMemoryMapping(virtaddr, &out_size, physaddr, size);
|
||||
} else {
|
||||
return svcLegacyQueryIoMapping(virtaddr, physaddr, size);
|
||||
return svc::LegacyQueryIoMapping(virtaddr, physaddr, size);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user