From 7dd27fd5c832d6a02f0452e4c0a9dceed1ac4cea Mon Sep 17 00:00:00 2001 From: jakcron Date: Sat, 15 Jul 2017 18:59:15 +1000 Subject: [PATCH] [nx] Unbroke MemoryMappingHandler forloop bugfix. Fixed typo in KcBinary::importBinary(). --- lib/nx/KcBinary.cpp | 2 +- lib/nx/MemoryMappingHandler.cpp | 13 +++++++------ lib/nx/MemoryMappingHandler.h | 24 ++++++++++++++++++------ 3 files changed, 26 insertions(+), 13 deletions(-) diff --git a/lib/nx/KcBinary.cpp b/lib/nx/KcBinary.cpp index ee2baa7..45993d6 100644 --- a/lib/nx/KcBinary.cpp +++ b/lib/nx/KcBinary.cpp @@ -123,7 +123,7 @@ void nx::KcBinary::importBinary(const u8 * bytes, size_t len) mSystemCalls.importKernelCapabilityList(systemCallCaps); mMemoryMap.importKernelCapabilityList(memoryMapCaps); mInterupts.importKernelCapabilityList(interuptCaps); - mMiscParams.importKernelCapabilityList(memoryMapCaps); + mMiscParams.importKernelCapabilityList(miscParamCaps); mKernelVersion.importKernelCapabilityList(kernelVersionCaps); mHandleTableSize.importKernelCapabilityList(handleTableSizeCaps); mMiscFlags.importKernelCapabilityList(miscFlagsCaps); diff --git a/lib/nx/MemoryMappingHandler.cpp b/lib/nx/MemoryMappingHandler.cpp index 17d771f..c37a123 100644 --- a/lib/nx/MemoryMappingHandler.cpp +++ b/lib/nx/MemoryMappingHandler.cpp @@ -35,15 +35,16 @@ void nx::MemoryMappingHandler::importKernelCapabilityList(const fnd::List