[nx-hb|nstool] More typos.

This commit is contained in:
jakcron 2018-06-26 21:16:07 +08:00
parent b7175f7f5c
commit 726c272f04
2 changed files with 2 additions and 2 deletions

View file

@ -6,6 +6,6 @@ namespace nx
{ {
namespace nro namespace nro
{ {
static const uint64_t kNroHomebrewStMagic = _MAKE_STRUCT_MAGIC_U64("HOMEBREW"); static const uint64_t kNroHomebrewStructMagic = _MAKE_STRUCT_MAGIC_U64("HOMEBREW");
} }
} }

View file

@ -106,7 +106,7 @@ void NroProcess::importHeader()
// setup homebrew extension // setup homebrew extension
nx::sNroHeader* raw_hdr = (nx::sNroHeader*)scratch.data(); 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; mIsHomebrewNro = true;
mAssetProc.setInputFile(new OffsetAdjustedIFile(mFile, false, mHdr.getNroSize(), mFile->size() - mHdr.getNroSize()), true); mAssetProc.setInputFile(new OffsetAdjustedIFile(mFile, false, mHdr.getNroSize(), mFile->size() - mHdr.getNroSize()), true);