53 Commits

Author SHA1 Message Date
d0k3
2793daa55f Take over title version when building CIA from NCSD 2020-05-11 17:19:27 +02:00
d0k3
182f1ebe43 Fix garbage data in converted CIAs
Partial fix for #587
2020-05-11 17:19:27 +02:00
luigoalma
e763cbaf72 Changes to CIA building for DLC on legit cases
Ignore unowned content implied by ticket.
Standard building still should include everything due to fake ticket.
2020-03-28 07:05:42 -03:00
luigoalma
f7b7459d9f Little stack usage optimization
Just in one function's buffer but still
2020-03-28 07:05:42 -03:00
luigoalma
d27cfc71e1 Indentation fixes
Indentation fixes everywhere
(mostly anyway under arm9/source/)
And some other tab to spaces
2020-03-28 07:05:42 -03:00
luigoalma
4e04849860 Support for variable sized tickets
Except for cia building or loading cia just yet.
Added more checks on ticket content index, mainly due to having effects
in the ticket format itself, and are unknown still.
Ability to determine ticket size.
Verify signature with ticket's proper size.
Changes to use the new Ticket struct with the flexible array member.
2020-03-28 07:05:42 -03:00
luigoalma
4e38973384 Fix a memory leak
When running CIA checker tool
2020-03-28 07:05:42 -03:00
d0k3
98c1b25bb0 Allow fixing improperly decrypted NCSD/NCCH
... use "verify" for this. Also, there's a hint now when trying to CIA convert such files.
2020-01-02 21:08:45 +01:00
d0k3
da412226be Fix #562 2020-01-02 21:07:03 +01:00
Wolfvak
cf7fa9e401 Fix #549 2019-10-28 14:16:55 -03:00
d0k3
5799d99c4c Fix installing FIRMs 2019-10-04 18:26:08 +02:00
d0k3
1633961707 Allow game icons as preview for scripting 2019-10-03 17:04:35 -03:00
aspargas2
f8b9332728 implement vdisadiff 2019-09-29 19:53:30 +02:00
aspargas2
0b3b5529f2 add DISA/DIFF writing
this has only been tested with DIFF, specifically title database type files, but there's no reason it shouldn't work on all DISA/DIFF files
2019-09-29 19:53:29 +02:00
d0k3
ab110bf73d Improved legit CIA build warning 2019-06-10 16:54:19 +02:00
Wolfvak
8b098fa91a improvements over the last couple of RGB565 related commits 2019-06-03 02:28:26 +02:00
Wolfvak
256f2465d8 converted all bitmaps to RGB565 2019-06-03 02:28:26 +02:00
d0k3
9cc31b6f56 Fix several alignment assumptions 2019-06-03 02:28:24 +02:00
d0k3
c86ebe4baa CIA checker tool: properly detect custom TMD 2019-04-17 00:45:48 +02:00
d0k3
21fdb9543a Added ability to convert DSiWare .nds to CIA
Fixes #465
2019-03-20 02:07:34 +01:00
d0k3
d4ea225677 Offer fixing of BOSS files on failed verification
Fixes #442
2018-12-08 18:12:25 +01:00
d0k3
9f25b6cf25 Improved TMD checks 2018-10-29 00:04:23 +01:00
d0k3
e7de8b9ca3 CIA builder: Better handling for personalized legit tickets 2018-10-24 00:21:39 +02:00
d0k3
449a89277e ticket.db: fix out of bounds reads 2018-10-23 01:47:16 +02:00
d0k3
2b8d4fcc04 Don't remove TMD crypto flags on non-existing contents 2018-10-18 00:11:07 +02:00
d0k3
8f24ccec0c Full / proper verification for romFS in NCCH 2018-09-25 01:42:52 +02:00
Hyarion Sanyënóna
5c138e1219 Add scripting commands extrcode, cmprcode, cp -p
* extrcode already existed, but now has a progress bar and an entry in HelloScript.
* cmprcode recompresses a code binary into its original format. It takes 2-3 minutes.
* cp -p appends file 2 to the end of file 1 rather than overwriting it.
2018-09-19 00:47:28 +02:00
d0k3
619242ef96 Improved verification for TMD 2018-09-05 23:53:45 +02:00
d0k3
a05cc1ff56 Properly verify CFA NCCHs
Also fixes NCSD verification
2018-09-03 22:55:37 +02:00
d0k3
3446a43127 Added CIA Checker Tool 2018-08-13 00:08:56 +02:00
d0k3
9467bd6050 Fix verification and decrypt for incomplete DLC CIAs 2018-08-10 14:59:23 +02:00
d0k3
81ad8a2c1e Add trimmer tool for FIRM, NAND images, NCSD, NCCH, NDS
Fixes #392
2018-07-16 01:07:59 +02:00
Steveice10
f9ece57eb0 Fix dumping DLC to CIA. 2018-07-10 01:05:34 +02:00
d0k3
a4a7b8f1e0 Fix GCC v8.1 (new dkA) warnings
... this also fixes #371
2018-05-24 01:08:00 +02:00
d0k3
2e07189a1b Allow .code extraction for .3ds files 2018-04-17 00:50:17 +02:00
d0k3
ed6e7a2b91 H&S Injection: set savedata size to zero
Thanks @TurdPooCharger!
2018-04-13 17:12:17 +02:00
d0k3
cea5fe49f9 Fix ARM9 crashes with injected H&S apps 2018-03-27 00:28:24 +02:00
d0k3
3b5755fc28 seedDB building: detect empty seeddb 2018-03-19 01:11:48 +01:00
d0k3
3581ee97d8 Fix #325 2018-03-17 16:38:09 +01:00
d0k3
67e19ad574 Allow screenshots (almost) everywhere 2018-03-07 01:15:12 +01:00
d0k3
2f739ab130 Added ability to extract data from DIFF files 2018-02-22 01:47:29 +01:00
d0k3
3d7ac49f87 Improved encdecTitlekeys.bin / seeddb.bin builder 2018-02-21 01:57:35 +01:00
d0k3
689f6f7cf4 Rewitten .code extraction to require less of the heap 2018-02-08 00:49:34 +01:00
d0k3
79a3bfc9e1 Don't verify ExeFS for Process9 2018-02-07 02:16:31 +01:00
d0k3
e70074b9c5 Fixed a crash when building enc/decTitlekeys.bin 2018-02-07 00:43:19 +01:00
d0k3
a0d2d27b06 Replace TEMP_BUFFER & MAIN_BUFFER with heap 2018-02-07 00:43:18 +01:00
d0k3
e9dc378b7a Fix crashes when viewing metainfo for certain CIAs 2018-01-23 02:00:21 +01:00
d0k3
24c31f482d Validate tickets via RSA signature
-> only proper / signed tickets in T:/ drive
-> 100% safe way of telling a ticket is legit
2018-01-10 02:08:29 +01:00
d0k3
0dd72ceb27 Fix building .cia from .3ds files
fixes #290
2018-01-01 22:40:09 +01:00
d0k3
b5a0f6cfcf Try to catch low space on game crypto and CIA build operations 2017-12-28 03:46:57 +01:00