49 Commits

Author SHA1 Message Date
aspargas2
b51fc388c2 change a #include to make more sense 2020-06-30 19:22:18 +02: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
aspargas2
7729605f9a fix #563 2020-01-02 21:07:22 +01:00
Wolfvak
499e301b7b - fix #555
- remove useless free(NULL) check
2019-10-28 14:16:55 -03:00
d0k3
ae583300e6 Don't show the JEDECID file on carts that have none 2019-10-17 19:51:05 +02:00
d0k3
9e72c098b9 Make gamecart handling a little less annoying 2019-10-15 23:08:06 +02:00
Balint Kovacs
fa741b265b Write support for NTR saves
Why does this work? We are writing flash memories without erasing them,
and writing pages without regard to alignment. Yet it works?
2019-10-11 16:24:08 +02:00
Balint Kovacs
f60a4c1f63 Add a vfile to show the JEDEC id for the inserted cart
This is meant to replace the Prompt I was using previously.
Fun fact: WarioWare DIY seems to have *something* on the SPI bus, as it
returns an ID of 0x000001 consistently. Or am I just glitching the
parallel flash? Or did I get a fake?
2019-10-11 16:24:07 +02:00
d0k3
01bc082ca0 Initial support of cartridge savegame reads 2019-10-11 16:24:07 +02:00
d0k3
622fb38223 Fix compiler warnings (thanks @aspargas2) 2019-10-03 17:04:35 -03:00
aspargas2
97fed0a284 vdisadiff: reduce memory usage when fixing hashes, and fix an alignment bug 2019-09-29 19:53:30 +02:00
aspargas2
f8b9332728 implement vdisadiff 2019-09-29 19:53:30 +02:00
aspargas2
1026a60597 add virtual disadiff mounting code 2019-09-29 19:53:29 +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
aspargas2
398c7fd14c fix null pointer deref when cancelling ticket.db mounting
take 2
2019-09-29 19:53:28 +02:00
Wolfvak
2ef408f4af fix broken cross-buffer assumption, check nvram reads 2019-09-29 19:53:28 +02:00
Wolfvak
d6c6f56526 fix compilation warnings due to unaligned packed structures in newer gcc 2019-09-29 19:53:27 +02:00
d0k3
4e61bcaa50 Mark the cart drive as uninitialized when uninitialized
Fixes #492
2019-06-30 23:50:55 +02:00
d0k3
73e3a18ea8 Remove legacy A9LH support 2019-06-03 02:28:27 +02:00
d0k3
9cc31b6f56 Fix several alignment assumptions 2019-06-03 02:28:24 +02:00
d0k3
75a23a15c3 Show cart ID and type on cart drive
Fixes #435
2018-11-05 00:19:41 +01:00
d0k3
449a89277e ticket.db: fix out of bounds reads 2018-10-23 01:47:16 +02:00
d0k3
762edd5432 Fix mounting incomplete DLC CIAs 2018-10-16 01:00:03 +02:00
d0k3
8f24ccec0c Full / proper verification for romFS in NCCH 2018-09-25 01:42:52 +02:00
d0k3
cbe473450f Improve virtual romfs memory handling
Fixes #425
2018-09-03 21:44:16 +02:00
d0k3
5e51805ea0 Allow handling of DLC CIAs with up to 1000 contents 2018-08-02 01:23:56 +02:00
d0k3
f74d9ddfd7 Include ARM9 footer when mounting .nds files 2018-06-27 01:33:17 +02:00
d0k3
63120f8a79 Workaround for dumping NTR-AKRJ-JPN
... this cart has a broken header, thus trimming is not possible.
2018-06-07 00:26:03 +02:00
d0k3
5b72bfdf16 Shift-JIS workaround for NDS image mounting
Fixes #368
2018-05-24 16:59:37 +02:00
d0k3
a4a7b8f1e0 Fix GCC v8.1 (new dkA) warnings
... this also fixes #371
2018-05-24 01:08:00 +02:00
d0k3
87890ebc83 Compatibility for mounting fb3ds.firm
This allows handling of the superhaxed fb3ds firm.
2018-05-11 17:45:39 +02:00
Hyarion Sanyënóna
8628e18d35 Switch iteration order over RomFS's from "folders before files" to "files before folders".
* This should only affect the for loop in scripts, causing RomFS's to be read in the order described on 3DBrew.
2018-04-23 01:39:44 +02:00
d0k3
9ab50ba68d Fix mounting TADs
... thanks @wolfvak for help fixing this.
2018-03-26 02:40:47 +02:00
d0k3
ac514669a1 Properly handle UTF-8 filenames 2018-03-16 03:00:26 +01:00
d0k3
4c17f6f96e Only show M:/otp_dec.mem if available 2018-02-26 23:09:50 +01:00
d0k3
2f739ab130 Added ability to extract data from DIFF files 2018-02-22 01:47:29 +01:00
d0k3
2806cf09ee Rewritten virtual ticket.db drive 2018-02-21 01:58:28 +01:00
d0k3
0086a6bcb5 Improved memmap.h, now used everywhere 2018-02-07 00:43:21 +01:00
d0k3
93485ac287 Fixed all occurences of VGAME_BUFFER 2018-02-07 00:43:21 +01:00
d0k3
ae6c1c61c1 Fix all occurences of VCART_BUFFER 2018-02-07 00:43:20 +01:00
d0k3
a0d2d27b06 Replace TEMP_BUFFER & MAIN_BUFFER with heap 2018-02-07 00:43:18 +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
978f713a11 Added access to NVRAM to M: drive 2017-12-29 02:33:07 +01:00
d0k3
1e36b3ca98 Fix NULL dereference
Thanks @AuroraWright!
2017-12-19 02:59:40 +01:00
d0k3
585172f810 Added the ability to install aeskeydb.bin to NAND 2017-12-11 14:55:44 +01:00
d0k3
5132fb1271 Handle SRL as directory in vGame drive 2017-11-22 03:17:57 +01:00
d0k3
20d2772056 DSiWare Export -> TAD 2017-11-17 19:37:46 +01:00
d0k3
ec861a7bf7 Added title info / mount support for DSiWare Exports 2017-11-17 19:37:46 +01:00
Wolfvak
beeea37d07 Revised Makefile 2017-11-17 19:37:45 +01:00