mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Verify TMD when installing / building CIA
This commit is contained in:
parent
ae32e63074
commit
355519285a
@ -1838,8 +1838,8 @@ u32 InstallFromCiaFile(const char* path_cia, const char* path_dest) {
|
||||
if (getbe32(cia->ticket.console_id) != (&ARM9_ITCM->otp)->deviceId)
|
||||
memset(cia->ticket.console_id, 0x00, 4);
|
||||
|
||||
// fix TMD hashes, install CIA system data
|
||||
if ((FixTmdHashes(&(cia->tmd)) != 0) ||
|
||||
// verify TMD hashes, install CIA system data
|
||||
if ((VerifyTmd(&(cia->tmd)) != 0) ||
|
||||
(InstallCiaSystemData(cia, path_dest) != 0)) {
|
||||
free(cia);
|
||||
return 1;
|
||||
@ -2019,8 +2019,8 @@ u32 BuildInstallFromTmdFileBuffered(const char* path_tmd, const char* path_dest,
|
||||
}
|
||||
}
|
||||
|
||||
// write the CIA stub (take #2)
|
||||
if ((FixTmdHashes(tmd) != 0) ||
|
||||
// verify TMD / write CIA stub / install system data (take #2)
|
||||
if ((VerifyTmd(tmd) != 0) ||
|
||||
(!install && (WriteCiaStub(cia, path_dest) != 0)) ||
|
||||
(install && (InstallCiaSystemData(cia, path_dest) != 0)))
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user