fix forwarder creation bug on ams 1.7.1, fix cmake project version bug

i was checking against ams 1.7.1, however the change was introduced in ams 1.8.0.
fixes #106

as for cmake, i have no idea why this bug happens, but sometimes it will use the project version for hbl.
which results in sphaira having a version number of 3.0.0.
this only seemed to happen when building the zip with no current build.
This commit is contained in:
ITotalJustice
2025-01-22 12:54:30 +00:00
parent 5763610e54
commit 7e381924ab
2 changed files with 2 additions and 2 deletions

View File

@@ -330,7 +330,7 @@ nx_generate_nacp(
OUTPUT sphaira.nacp
NAME ${CMAKE_PROJECT_NAME}
AUTHOR TotalJustice
VERSION ${CMAKE_PROJECT_VERSION}
VERSION ${sphaira_VERSION}
)
# create nro

View File

@@ -655,7 +655,7 @@ void patch_npdm(std::vector<u8>& npdm, const NpdmPatch& patch) {
splGetConfig(SplConfigItem_ExosphereVersion, &ver);
ver >>= 40;
if (ver >= MAKEHOSVERSION(1,7,1)) {
if (ver >= MAKEHOSVERSION(1,8,0)) {
npdm_patch_kc(npdm, meta.aci0_offset + aci0.kac_offset, aci0.kac_size, 16, BIT(19));
npdm_patch_kc(npdm, meta.acid_offset + acid.kac_offset, acid.kac_size, 16, BIT(19));
}