Pablo Curiel
4425666395
NPDM support (part 1).
...
Only added header file with structs and enums. Actual functions come next but I'm tired atm.
2020-10-08 17:52:31 -04:00
Pablo Curiel
1c15a096b5
Codestyle fixes + prepare code for NPDM support.
2020-10-08 14:31:09 -04:00
Pablo Curiel
e943e84380
Unified XML generator + finished NACP parsing.
...
Big thanks to 0Liam.
2020-10-06 11:41:26 -04:00
Pablo Curiel
2859f26cb3
NACP: add NeighborDetectionClientConfiguration and RequiredAddOnContentsSetBinaryDescriptor to XML generation.
...
This is tentative. I need to look into how these fields are really parsed / appended to the XML.
2020-10-06 02:00:18 -04:00
Pablo Curiel
7573c53457
Fix silly bug in titleGetNcmContentMetaTypeName.
2020-10-04 06:40:56 -04:00
Pablo Curiel
afa99ba445
Added info about XCI header keys.
2020-10-04 05:25:42 -04:00
Pablo Curiel
1e41148c02
NACP parsing (part 2).
...
NeighborDetectionClientConfiguration and RequiredAddOnContentsSetBinaryDescriptor haven't been implemented (yet).
2020-10-04 03:05:05 -04:00
Pablo Curiel
d385d40862
NACP parsing (part 1).
...
God, I'm so tired. I'll go play some good old MGS3 and continue this stuff at a later time. It builds, though.
2020-10-03 13:09:29 -04:00
Pablo Curiel
fa1b9c70a5
NCA changes.
2020-10-02 22:37:05 -04:00
Pablo Curiel
d440d88bbe
CNTM: type name consistence.
2020-10-02 06:28:41 -04:00
Pablo Curiel
98b7a309b3
CNMT AuthoringTool-like XML generation.
2020-10-02 05:53:58 -04:00
Pablo Curiel
6e32829cf1
CNMT parsing.
2020-10-01 02:17:59 -04:00
Pablo Curiel
d0f9a0b248
Update nca.c
2020-09-26 08:53:41 -04:00
Pablo Curiel
97d9603e93
BKTR: add support for games with base Program NCAs without a RomFS section.
2020-09-26 06:49:18 -04:00
Pablo Curiel
40ca7e2d6c
Updated legacy codebase copy.
...
Worked on the legacy codebase earlier and now I need a bath...
2020-09-26 05:59:01 -04:00
Pablo Curiel
1a6f2ee50c
Rename some reserved fields.
2020-09-24 13:03:26 -04:00
Pablo Curiel
6a3e886d82
Update .gitignore
2020-09-24 03:18:38 -04:00
Pablo Curiel
38f19351a9
Add build script.
2020-09-22 21:13:39 -04:00
Pablo Curiel
83671eaa9c
Update old codebase copy.
2020-09-22 19:00:54 -04:00
Pablo Curiel
083874bd4e
Fix unaligned reads from the gamecard secure storage area.
...
Big thanks to Whovian for finding the bug and testing the change.
2020-09-19 06:21:23 -04:00
Pablo Curiel
b806c2e7d0
Support multi-program titles in the RomFS dumper.
2020-09-19 02:59:31 -04:00
Pablo Curiel
01ff151946
Update fs_ext.h
2020-09-18 23:18:32 -04:00
Pablo Curiel
679aa170b5
Some small changes.
...
* tik: check for common certificate availability before attempting to convert a personalized ticket to a common one. The raw common certificate chain data for the ticket signature issuer is now returned.
* usb: skip waitMulti call in the USB background thread if an invalid endpoint max packet size was received from the USB host in the previous while loop iteration.
2020-08-27 15:18:31 -04:00
Pablo Curiel
971d7fd72c
Silly fix.
2020-08-20 23:49:57 -04:00
Pablo Curiel
d6cdfe5c06
Perform title sorting at startup and in the background gamecard title info thread, not while retrieving data using non-static functions.
...
Orphan titles are now sorted by title ID.
2020-08-20 20:18:05 -04:00
Pablo Curiel
f809d795e3
Update BKTR PoC to make it dump user application RomFS data if an update isn't available.
2020-08-19 13:20:26 -04:00
Pablo Curiel
a19d3f2338
Ditched C threads in favor of libnx threads.
...
Preemptive multithreading is still used, just like libnx's newlib implementation.
Also changed the version number because the rewrite deserves it.
2020-08-18 01:04:13 -04:00
Pablo Curiel
1e50cec315
Update usb.c
2020-08-17 17:31:24 -04:00
Pablo Curiel
dfa425790a
Get endpoint max packet size from USB host to properly enable ZLT packets when needed.
...
Also updated the diff patch for ns-usbloader.
2020-08-17 17:30:47 -04:00
Pablo Curiel
f724eaa9a9
Update utils.c
2020-08-15 17:25:40 -04:00
Pablo Curiel
6b8b3184ac
Fixes for development units + diff patch for ns-usbloader.
...
Big thanks to ZachyCatGames.
2020-08-15 17:22:49 -04:00
Pablo Curiel
ace4732fda
Functions to generate gamecard/title filenames + fix CRC32 calculation.
...
Updated the threaded gamecard dumper to reflect these changes.
2020-08-13 22:31:02 -04:00
Pablo Curiel
7606f7b40a
Clear previous and next pointers from user application entries while freeing gamecard title info entries.
2020-08-13 14:20:53 -04:00
Pablo Curiel
90c6d8a9f8
Use linked lists to deal with user applications available in multiple storages at the same time.
2020-08-13 14:12:33 -04:00
Pablo Curiel
ad401d559d
New template: threaded gamecard dumper via USB.
...
Key area and certificate can be optionally appended and/or preserved, respectively. Trimming is supported.
Also added a bunch of ZLT packet related fixes to usb.c, as well as a function to properly cancel an ongoing file transfer.
2020-08-13 02:01:23 -04:00
Pablo Curiel
e26637125b
Add slightly better scrolling + title counter.
2020-08-03 17:41:00 -04:00
Pablo Curiel
3105540c99
Block HOME button presses during dumping operations in code templates.
2020-08-03 14:13:24 -04:00
Pablo Curiel
3eb5239d38
Update todo.txt
2020-08-01 01:18:38 -04:00
Pablo Curiel
032a4fc22c
Perform gamecard initial data area lookup only on demand.
2020-08-01 01:17:08 -04:00
Pablo Curiel
ca333bd71d
Missing fs commit changes.
2020-08-01 00:52:40 -04:00
Pablo Curiel
64f3a566f8
Commit filesystem changes when needed.
2020-08-01 00:43:55 -04:00
Pablo Curiel
b11df5e732
Remove unnecessary line breaks.
2020-07-30 18:42:53 -04:00
Pablo Curiel
5d1944b43c
Move title info dump code to a template.
2020-07-30 18:40:02 -04:00
Pablo Curiel
3f837cef05
Simple functions to deal with orphan titles...
...
... No way to avoid them, I guess.
2020-07-30 18:37:45 -04:00
Pablo Curiel
bb8cba1eaa
Threaded gamecard title info/metadata retrieval.
2020-07-30 17:43:50 -04:00
Pablo Curiel
cd8afd2cd8
Fixed gamecard key area template.
2020-07-30 16:01:26 -04:00
Pablo Curiel
7c4e7a4db0
New test app: system title NCA section dumper.
2020-07-29 17:02:21 -04:00
Pablo Curiel
5320260b4e
Better names for TITLE_* defines.
2020-07-28 02:20:19 -04:00
Pablo Curiel
64766be416
Update title.c
2020-07-27 23:38:45 -04:00
Pablo Curiel
98f3f85a31
Bunch of title related changes.
...
* Improved patch and add-on content title ID verification against a base application title ID.
* Implemented linked lists in TitleInfo structs, which make it easier to deal with multiple patches / add-on contents belonging to the same application.
* TitleApplicationMetadata elements are retrieved with titleGetApplicationMetadataEntries() and used by the UI to display title entries. An 'is_system' filter argument is used to determine which kind of metadata should be retrieved. These are ordered by ID (system titles) or alphabetically (user applications) using qsort().
* Added TitleUserApplicationData struct, which is populated when an user application is selected.
* Tweaked titleRefreshGameCardTitleInfo() behaviour a little bit. Now returns true whenever there are title info changes, so the UI can reload the list.
* Temporarily commented out title info logging from titleInitialize().
* Fixed decrypted key retrieval from the NCA key area for patches with titlekey crypto removed.
* Implemented a very small menu to select a title to dump.
2020-07-27 23:32:08 -04:00