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:
@@ -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
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user