mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
CIA installer: only fix console ID when different
This commit is contained in:
parent
f48bb58bac
commit
c7f10be1b4
@ -3,6 +3,7 @@
|
|||||||
#include "disadiff.h"
|
#include "disadiff.h"
|
||||||
#include "game.h"
|
#include "game.h"
|
||||||
#include "nand.h" // so that we can trim NAND images
|
#include "nand.h" // so that we can trim NAND images
|
||||||
|
#include "itcm.h" // we need access to part of the OTP
|
||||||
#include "hid.h"
|
#include "hid.h"
|
||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
#include "fs.h"
|
#include "fs.h"
|
||||||
@ -1771,8 +1772,9 @@ u32 InstallFromCiaFile(const char* path_cia, const char* path_dest) {
|
|||||||
next_offset += size;
|
next_offset += size;
|
||||||
}
|
}
|
||||||
|
|
||||||
// proactive fix for CIA console ID
|
// fix for CIA console ID (if device ID different)
|
||||||
memset(cia->ticket.console_id, 0x00, 4);
|
if (getbe32(cia->ticket.console_id) != (&ARM9_ITCM->otp)->deviceId)
|
||||||
|
memset(cia->ticket.console_id, 0x00, 4);
|
||||||
|
|
||||||
// fix TMD hashes, install CIA system data
|
// fix TMD hashes, install CIA system data
|
||||||
if ((FixTmdHashes(&(cia->tmd)) != 0) ||
|
if ((FixTmdHashes(&(cia->tmd)) != 0) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user