mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-26 12:12:02 +00:00
nca: fix layer hash calculation.
Long standing issue since 1bc1a05f96
.
I feel extra stupid. It must be the date or something, I don't know. At least I'm getting to fix lots of silly issues within the codebase. Emphasis on "silly" -- I wouldn't have liked to rework the hierarchical patch generation algorithm.
Big thanks to @KookiesGH for notifying about the NSP installation issues with Goldleaf on the Discord server.
This commit is contained in:
parent
3d6c65ba25
commit
6bbe964f42
1 changed files with 2 additions and 2 deletions
|
@ -1405,9 +1405,9 @@ static void ncaCalculateLayerHash(void *dst, const void *src, size_t size, bool
|
||||||
{
|
{
|
||||||
if (use_sha3)
|
if (use_sha3)
|
||||||
{
|
{
|
||||||
sha256CalculateHash(dst, src, size);
|
|
||||||
} else {
|
|
||||||
sha3256CalculateHash(dst, src, size);
|
sha3256CalculateHash(dst, src, size);
|
||||||
|
} else {
|
||||||
|
sha256CalculateHash(dst, src, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue