259 Commits

Author SHA1 Message Date
Pengfei 325832f318 Misc changes to ticket, cert and CIA 2021-07-28 00:27:01 +08:00
Pengfei d8c79c5d2a Critical bug fix 2021-07-28 00:13:48 +08:00
Pengfei 705dd646dd Add common keyYs
Ideally this should be derived from safe mode firm. However that is complex as we don't have a filesystem like thing, and reading the firm requires some work.
2021-07-27 16:52:43 +08:00
Pengfei 79dfe4fc8b Add certificate, and certs.db parsing 2021-07-17 00:34:32 +08:00
Pengfei 0c04e31405 Make use of string_util 2021-07-16 22:10:49 +08:00
Pengfei 27988d09e2 Provide arguments 2021-07-16 22:01:25 +08:00
Pengfei 4e619b3621 Beautify code with new macro 2021-07-16 21:59:32 +08:00
Pengfei 55db5f110f Simplify TitleKeysBin implementation to a simple function 2021-07-16 21:46:10 +08:00
Pengfei 374470cd60 Support SDMC/NAND path redirecting
Added inih as an external.
2021-07-15 16:28:33 +08:00
Pengfei e41151420f Fix Flatpak user path 2021-07-13 21:55:35 +08:00
Pengfei d002928a38 Fix LGTM alerts 2021-07-12 12:14:00 +08:00
Pengfei 6fbbae7039 Rework failed task cleanup
Now the cleanup of failed tasks (deletion of borked files) is handled by the related task itself, instead of the frontend.
2021-07-12 11:47:42 +08:00
Pengfei 23226b2b37 Properly set crypto flags as GodMode9 does; remove pointless zeroing 2021-07-09 20:32:08 +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 3429d9e965 Add in complete Ticket support from Citra 2021-07-07 12:03:06 +08:00
Pengfei 3ade2a382f Fix macos again 2021-07-06 17:55:55 +08:00
Pengfei c614131c81 Fix macos build 2021-07-06 17:40:04 +08:00
Pengfei be5701b7ee Do not create seeddb when loading it 2021-07-06 16:48:10 +08:00
Pengfei cb6d58b538 Replace file writes with new helper 2021-07-06 16:42:22 +08:00
Pengfei c81db424bb Refactor InnerFAT into Savegame and Extdata
And derive TitleDB from it too.
2021-07-06 16:11:03 +08:00
Pengfei 184d73d465 Fix LGTM.com not being able to analyse 2021-07-01 15:46:10 +08:00
Pengfei 3d4d815595 Fix build for outdated compilers on CI 2021-07-01 15:34:09 +08:00
Pengfei 19bc9d0210 Use GodMode9 naming scheme 2021-07-01 15:22:38 +08:00
Pengfei e2bef4d705 Add support for title.db, and use title.db to augment TMD finding
Also added support for system title CIA building, and fixed various minor issues.
Also moved MakeMagic to Common.
2021-07-01 14:13:20 +08:00
Pengfei 857bd12a6f Fix appveyor artifact 2021-06-28 23:21:05 +08:00
Pengfei 2575e7fdde Unify ProgressCallbacks to a Common::ProgressCallback 2021-06-28 22:50:16 +08:00
Pengfei 5a4bf7daff Clean up code a little bit 2021-06-28 22:37:03 +08:00
Pengfei 974363b0d9 Added 'Advanced...' menu with batch dumping cxi/cia 2021-06-28 22:17:28 +08:00
Pengfei dac4b1cb41 Rename ImportJob to MultiJob and generalize 2021-06-28 00:26:32 +08:00
Pengfei 817c3ea1a8 Rename ProgressiveJob to SimpleJob
Because I had to.
2021-06-28 00:26:32 +08:00
Pengfei 3db1c43fd6 Changes to accommodate for high DPI
Not sure how this will work on Linux or macOS.
2021-06-27 18:46:08 +08:00
Pengfei 412aeaa0d4 Use Github Actions instead of Travis
Moved MSVC to Github Actions as well.
2021-06-27 00:11:09 +08:00
Pengfei 3d3b51bb98 Enable C++20 and re-enable MSVC build
Also switched to standard-conforming __VA_OPT__ for logging.
2021-06-26 17:37:05 +08:00
zhupengfei e6d67f3aee Fix build 2020-11-28 23:11:10 +08:00
zhupengfei b89376faa8 Update README.md 2020-11-28 20:49:45 +08:00
zhupengfei 47a98faa6f Fix a potential bug in ProgressiveJob 2020-11-28 20:26:52 +08:00
zhupengfei 7aff22c3fc Fix build 2020-11-28 20:16:15 +08:00
zhupengfei 5c595a8046 Add IOFile::GetData 2020-11-28 20:12:24 +08:00
zhupengfei 9cbec118cd core: Add NAND data importing 2020-11-28 17:20:46 +08:00
zhupengfei 87fd41076b frontend: Minor text improvements 2020-11-28 15:53:30 +08:00
zhupengfei 2688a6ef61 Move System Applets into a new category and deselect by default
As they are known to cause problems with Mii Maker and games like Tomodachi Life.
2020-11-28 15:39:59 +08:00
zhupengfei e238015e82 import_dialog: Fix Qt weirdty with ProgressDialog
Hopefully fixes #11

There are times when file writes can be *really* fast (for instance if you just deleted the same file). With modal progress dialogs, Qt call processEvents on setValue. If the operation is done too fast, a new signal would have arrived by this time. This can lead to stack overflow caused by overly deep recursion.
2020-08-27 00:52:35 +08:00
zhupengfei b06440aefb Fix some LGTM alerts 2020-08-07 16:03:22 +08:00
zhupengfei 7c0dc35cab Dump ticket.db
In case we need it later
2020-08-07 13:56:33 +08:00
zhupengfei 0c2e034fac Minor UI fixes 2020-08-07 12:35:56 +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 26b6aee5ca Add LGTM static analyzer config file 2020-08-07 09:02:03 +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
zhupengfei 769162e95c ncch_container: Fix progress report in DecryptToFile
The total size should now be correct
2020-08-07 08:55:38 +08:00