Commit graph

1118 commits

Author SHA1 Message Date
Alex Barney
e9f7556635 Ensure the save header is flushed when committing 2018-10-22 12:51:30 -05:00
Alex Barney
7a7946a26c Add Savefile.CommitHeader method 2018-10-18 18:18:39 -05:00
Alex Barney
f83a284b96 Add verification option to save files 2018-10-18 17:54:24 -05:00
Alex Barney
f8e7c00ef4 Tweak how IVFC validation is done 2018-10-18 16:10:51 -05:00
Alex Barney
da5eec1b3d Writing for all save file layers 2018-10-17 17:15:57 -05:00
Alex Barney
c0393449f1 IVFS writing 2018-10-16 15:01:16 -05:00
Alex Barney
0eaefba071 Make SaveFs writable 2018-10-15 21:17:53 -05:00
Alex Barney
4a43c330b6 Add RemapStorage class 2018-10-15 20:53:49 -05:00
Alex Barney
75cb28364f Create SaveFs class 2018-10-14 19:23:18 -05:00
Alex Barney
6935983b71 Add Seek to AllocationTableStream 2018-10-14 18:00:46 -05:00
Alex Barney
ae649182ce Rename "Savefile" namespace to "Save" 2018-10-13 15:12:10 -05:00
Alex Barney
a27c9f78c7
Merge pull request #13 from Thealexbarney/nca
- Read only the NCA header when first opening an NCA. This allows for reading of partial NCAs and slightly improves performance when opening an NCA.
- Add a separate NCA method to validate master hashes now that it's not automatically done when opening the NCA.
- Fix possible hang when reading BKTR sections.
- When keys required to decrypt an NCA are missing, throw an exception with information about the missing keys.
- Add more sanity checks when reading an NCA.
- Add a cache to prevent validation an IntegrityVerificationStream block twice.
- Add section validation for all hashed NCA sections
- Fix a bug in ConbinationStream when reading across boundaries
- Add option to verify NCAs in a SwitchFS or SD card
- Don't error if the an patch NCA's base NCA has no RomFS
2018-10-12 20:32:07 -06:00
Alex Barney
e9602d35da Modify check for ExeFS NCA sections 2018-10-12 21:28:05 -05:00
Alex Barney
75dafd9cbe Remove old classes 2018-10-12 21:08:16 -05:00
Alex Barney
e1b9f9b935 Don't error if the a patch's base has no RomFS 2018-10-12 18:07:46 -05:00
Alex Barney
6213111af9 Add option to verify SwitchFS and SD cards 2018-10-12 17:52:15 -05:00
Alex Barney
e21c384a9c Fix bug in ConbinationStream when reading across boundaries 2018-10-12 16:51:09 -05:00
Alex Barney
fb089b0700 Integrity verification improvements
- Add a cache to prevent validation an IntegrityVerificationStream block twice.
- Add section validation for all hashed NCA sections
2018-10-09 18:10:44 -05:00
Alex Barney
24e6434765 Use an enum instead of a bool for integrity checking levels 2018-10-09 15:33:56 -05:00
Alex Barney
a64cbeca5b Continue NCA improvements
- Read only the NCA header when first opening an NCA. This allows for reading of partial NCAs and slightly improves performance when opening an NCA.
- Add a separate NCA method to validate master hashes now that it's not automatically done when opening the NCA.
- Fix possible hang when reading BKTR sections.
- When keys required to decrypt an NCA are missing, throw an exception with information about the missing keys.
- Add more sanity checks when reading an NCA.

Hactoolnet: Don't hard-crash when hitting an unhandled exception
2018-10-08 21:04:39 -05:00
Alex Barney
209d81187a NCA reading improvements
Add on-the-fly Partition FS hash verification
Do some cleanup on NCA classes
2018-10-07 20:29:27 -05:00
Alex Barney
47a3eda0ed Fix key printing 2018-10-05 12:29:52 -05:00
Alex Barney
db00267ef4 Dispose SharedStreamSource. Temp fix for switchfs reading without title keys 2018-10-05 12:23:18 -05:00
Alex Barney
0300f55da5 Give RomfsDir and RomfsFile a common base 2018-10-04 21:40:59 -05:00
jonnysp
d12f419d8d Add Partition FS extraction (#12)
Add Partition FS extraction + misc. changes
2018-10-03 14:14:23 -06:00
Alex Barney
e798a8dd45 Add key file exporting to hactoolnet 2018-10-02 22:00:57 -05:00
Alex Barney
e740d13bbe Enforce "var" style 2018-10-02 17:25:58 -05:00
Alex Barney
372370db82 Code style naming fixes 2018-10-01 13:07:20 -05:00
Alex Barney
56115ace39 Fix casing of names 2018-10-01 13:00:09 -05:00
Alex Barney
a21283bf44 Print information about save files 2018-10-01 12:55:10 -05:00
Alex Barney
7a5bd2347d Read additional portion of patch content metadata files 2018-09-25 18:28:49 -05:00
Alex Barney
64c98df5b3 Fix hactoolnet build 2018-09-24 14:42:06 -05:00
Alex Barney
54319145c1
Merge pull request #10 from jonnysp/master
added XCI File and Partition HashValidity
2018-09-24 13:40:03 -06:00
Alex Barney
b5c7f14d55
Merge pull request #11 from shadowninja108/master
Add partial NSO support
2018-09-23 20:22:39 -06:00
Alex Barney
fba8a7c6e0 Code style tweaks 2018-09-23 21:18:20 -05:00
shadowninja108
86aa80c87b Fixed Nso implementation
Added more keyset printing
2018-09-23 00:24:14 -07:00
shadowninja108
0efc550fa6 Better handling of the IsCompressed flag in Nso.cs 2018-09-22 21:52:30 -07:00
shadowninja108
e694833e0c Switched to Ryujinx's implementation of LZ4
Fixed stream handling in Nso.cs
2018-09-22 21:46:15 -07:00
shadowninja108
73b472befa Add partial NSO support 2018-09-22 20:19:27 -07:00
Alex Barney
34c3ffd37e Make sure the title key for an NCA exists when loading 2018-09-22 18:48:44 -05:00
jonnysp
f7b23c3f83 correction ECB CBC 2018-09-22 08:42:00 +02:00
jonnysp
ab8dda98b4 simplify the ECB and CBC 2018-09-22 07:44:52 +02:00
jonnysp
235ace8b1b added XCI File and Partition HashValidity 2018-09-21 14:37:30 +02:00
Alex Barney
ab565fe83e Version 0.1.2 2018-09-20 21:26:25 -05:00
Alex Barney
49d5c8e43b Remove setters from Keyset keys 2018-09-20 21:19:34 -05:00
Alex Barney
8110000737 Parse title key files with pipes as delimiters 2018-09-20 21:15:27 -05:00
Alex Barney
53680f3e5c Add Stream overload to Ticket constructor 2018-09-20 20:36:58 -05:00
Alex Barney
e92c686d77 Add save file integrity verification 2018-09-20 20:34:40 -05:00
Alex Barney
ed6c3c2bed Add the option to enable IVFC integrity checks 2018-09-20 16:16:40 -05:00
Alex Barney
f04fc33b07 Read INI1 2018-09-17 19:52:22 -05:00