Commit Graph

9 Commits

Author SHA1 Message Date
Pengfei aed564fb25 Add Legit CIA building 2021-07-31 17:28:00 +08:00
Pengfei 3021cfe5f0 Changes to TMD and CIA builder
Prepare for legit CIA.
2021-07-30 17:07:42 +08:00
Pengfei 502e05dc2b Add CIABuildType to CIABuilder; Add legit ticket handling 2021-07-29 16:38:41 +08:00
Pengfei b90fb11109 Fixing things again 2021-07-09 20:25:49 +08:00
Pengfei 76b0912a9a Add proper support for CIA title keys
1. Support for `ticket.db`
2. Support for `gm9/support/encTitleKeys.bin`
3. Set the title key and common key index when building standard CIA
2021-07-09 20:08:42 +08:00
Pengfei 2575e7fdde Unify ProgressCallbacks to a Common::ProgressCallback 2021-06-28 22:50:16 +08:00
zhupengfei b06440aefb Fix some LGTM alerts 2020-08-07 16:03:22 +08:00
zhupengfei 66b09ffa27 A bunch of fixes to CIA building
1. Clean stale state
2. DLC CIAs
3. Build content index for ticket better
2020-08-07 12:28:47 +08:00
zhupengfei 49ddd86b7a Add CIA building
Quite a lot of code, yeah.

The built CIA is almost identical to GM9, with the following differences:
1. Paddings are zeroed out
2. Title key is not written (GM9 gets it from support data/ticket db)
3. Ticket content index is slightly different (GM9 likely takes it from the legit ticket, while we are building a fake one)

The 2, 3 points can be fixed probably.
2020-08-07 08:58:09 +08:00