25 Commits

Author SHA1 Message Date
Luís Marques
26990ca23a
Key 0x2C is different per platform (#842)
Change KeyY to generate same KeyNormal on dev
2024-03-17 11:27:27 -03:00
Pk11
5aaac66eef Use sizeof in snprintf where possible, ensure UTF_BUFFER_BYTESIZE
This commit looks a lot bigger than it really is, I noticed a couple spots where with these issues so I ran a regex to find all possible occurrences and switched all that could be, after manually ensuring it was actually correct

Using sizeof on the buffer (as long as the buffer is a char *array*, not a pointer!!) greatly reduces the chance of something having the wrong size because of a later change to the buffer, notably a couple snprintfs were missed in the UTF_BUFFER_BYTESIZE change
2023-04-15 12:54:02 +02:00
d0k3
3f7eb872b8 Remove aeskeydb.bin warning for entrypoints other than b9s
Fixes #676
2021-02-23 15:45:09 +01:00
Gabriel Marcano
d010f2858b Remove trailing white space
- Removed trailing whitespace from all source code files (.c, .h. and
   .s) and the README.md
2020-08-26 23:01:58 +02:00
Wolfvak
929cc7fdcf better hints to reduce compiled size by a few kb
mostly just added static const to constant arrays/buffers
2020-07-23 13:46: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
Wolfvak
d6c6f56526 fix compilation warnings due to unaligned packed structures in newer gcc 2019-09-29 19:53:27 +02:00
d0k3
9cc31b6f56 Fix several alignment assumptions 2019-06-03 02:28:24 +02:00
Wolfvak
2f64a8046a - compile with size optimizations, reduces inst cache pressure
- removed most of lodepng's optional features
- lodepng now uses the already existing CRC32 code instead of using its own copy
- fixed GIC interrupt priority
2019-06-03 02:28:24 +02:00
d0k3
500333b011 Some source code reorganisation 2019-06-03 02:27:43 +02:00
d0k3
151e6389ac Use iomemcpy for registers (thanks @profi200) 2019-04-17 00:45:48 +02:00
d0k3
d762c390af CPPCheck audit, several fixes 2019-03-21 00:42:39 +01:00
d0k3
f51a48c39e sha.c: add volatile keyword where required 2019-03-19 00:20:10 +01:00
luigoalma
1e2b45941b revert seqmemcpy and memcpy reimplementation 2019-03-15 00:48:24 +01:00
d0k3
82d6e94789 Fix compiling in devkitARM r51
Use custom (sequential) memcpy for reading / writing hardware registers.
Fixes #460
2019-03-13 01:36:33 +01:00
Hyarion Sanyënóna
a6305206e0 Buffer all BPS, IPS, CRC32 reads in chunks of 1 MB or less 2018-06-18 00:03:12 +02:00
Hyarion
1a9bf41c9d Add support for BPS/BPM/IPS-formatted binary delta patches.
BPS standardization edits.

* Clean up headers.
* Move crc32.c to /crypto/.
* Rename beat.c to bps.c and move it to /system/ with the rest of the non-3DS file formats.

Allocate memory for Source and Target files when possible.

Last-minute BPS improvements.
* BPS fails more gracefully on error, freeing memory and showing a more detailed message.
* BPM no longer deletes the folder it patches to - that should be up to the user.
* BPM is scanned before patching to figure out the total output file size for a more accurate progress bar.

Add IPS support.
2018-04-17 00:49:29 +02:00
d0k3
7a85615a42 Improved SHA code
Thanks @profi200
2018-03-14 00:00:57 +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
585172f810 Added the ability to install aeskeydb.bin to NAND 2017-12-11 14:55:44 +01:00
d0k3
1a63575caa Rewritten support file handling
Support files are now also accepted from CTRNAND.
2017-12-11 02:47:29 +01:00
d0k3
c18ac35d45 General fixes and cleanup
Thanks @Kazuma77 for pointing that stuff out!
2017-11-20 17:50:48 +01:00
d0k3
45b7a75af0 Simplified TAR code 2017-11-17 19:37:46 +01:00
Wolfvak
beeea37d07 Revised Makefile 2017-11-17 19:37:45 +01:00