From 726c272f049fe5e64f07d922a6936a1e6e56dd12 Mon Sep 17 00:00:00 2001 From: jakcron Date: Tue, 26 Jun 2018 21:16:07 +0800 Subject: [PATCH] [nx-hb|nstool] More typos. --- lib/libnx-hb/include/nx/nro-hb.h | 2 +- programs/nstool/source/NroProcess.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libnx-hb/include/nx/nro-hb.h b/lib/libnx-hb/include/nx/nro-hb.h index 8685a72..5e5bd05 100644 --- a/lib/libnx-hb/include/nx/nro-hb.h +++ b/lib/libnx-hb/include/nx/nro-hb.h @@ -6,6 +6,6 @@ namespace nx { namespace nro { - static const uint64_t kNroHomebrewStMagic = _MAKE_STRUCT_MAGIC_U64("HOMEBREW"); + static const uint64_t kNroHomebrewStructMagic = _MAKE_STRUCT_MAGIC_U64("HOMEBREW"); } } \ No newline at end of file diff --git a/programs/nstool/source/NroProcess.cpp b/programs/nstool/source/NroProcess.cpp index 34331c3..f7aace2 100644 --- a/programs/nstool/source/NroProcess.cpp +++ b/programs/nstool/source/NroProcess.cpp @@ -106,7 +106,7 @@ void NroProcess::importHeader() // setup homebrew extension nx::sNroHeader* raw_hdr = (nx::sNroHeader*)scratch.data(); - if (((le_uint64_t*)raw_hdr->reserved_0)->get() == nx::nro::kNroHomebrewSig && mFile->size() > mHdr.getNroSize()) + if (((le_uint64_t*)raw_hdr->reserved_0)->get() == nx::nro::kNroHomebrewStructMagic && mFile->size() > mHdr.getNroSize()) { mIsHomebrewNro = true; mAssetProc.setInputFile(new OffsetAdjustedIFile(mFile, false, mHdr.getNroSize(), mFile->size() - mHdr.getNroSize()), true);