24 Commits

Author SHA1 Message Date
Gabriel Marcano
ce23df7d9b Forgot to remove typo, extra i2c.h include. 2016-06-08 20:00:31 -04:00
Gabriel Marcano
a471b28cd5 Styling fixes, framebuffer fix
-Fixed a lot of styling problems related to indentation and spacing.
-Fixed a bug where the cakehax framebuffer structure was being
overwritten by the heap.
2016-06-07 23:15:14 -04:00
Gabriel Marcano
2c3870dbad Memory management cleaning, dump options
-newlib handles allocations, in the default case, by starting to
allocate memory right after the end of the program in memory, and will
continue to allocate memory as requested until it hits the stack. As a
result, it is safe to use memory allocation function to get memory for
usage. Changed some of the memory management in the application to use
memalign (memory needs to be aligned to at least 16 bits if sdmmc.c is
to work, preferably 32 bits).
-Added an option for the user to either dump the full ROM, or just the
partitions.
2016-06-07 02:49:50 -04:00
Gabriel Marcano
913bc867b7 No longer saves more than the ROM size, cleanup
Using some header information from rom_tool, it was possible to
implement something that will accurately determine the real ROM size.
With that information, uncart no longer dumps in 2GB chunks, but to the
actual size of ROM (all 8 partitions).

Warnings were cleaned up as much as possible for now (2 remain). i2c
support was added in order to be able to shut down uncart when it is
over (it isn't clear that the ASM in start.s is right for returning
control to brahma, if that's even possible). More warnings were enabled
in the Makefile, and lto was enabled.

Currently, the Makefile and the draw.h are configured for a9lh support.
2016-06-07 02:32:45 -04:00
d0k3
bf944f682b Allow rebooting on Brahma 2 2016-06-07 01:21:34 +02:00
Lioncash
70679335b2 main: Use constants for AND filtering input 2015-06-01 00:41:31 -04:00
Yuri Kunde Schlesner
179b593886 Remove outdated prompt 2015-05-29 14:46:45 -03:00
Yuri Kunde Schlesner
cd38556f97 Fill unused header area with 0xFF instead of garbage. 2015-05-29 14:46:22 -03:00
Yuri Kunde Schlesner
ea3b963f23 Add support for split-dumping large carts
Closes #1
2015-05-28 16:51:39 -03:00
Yuri Kunde Schlesner
43554a68d3 Add a hacky workaround for problematic carts
This adds a few strategically placed dummy commands which skip the bad
responses, allowing the cart to be dumped.
2015-05-25 17:46:00 -03:00
Yuri Kunde Schlesner
ff6e6862ff Nicer dumping and buffering loop. 2015-05-25 04:52:32 -03:00
Yuri Kunde Schlesner
ce21c68e8c Various cleanups and UI improvements (hopefully...) 2015-05-24 23:29:37 -03:00
Yuri Kunde Schlesner
f95a7585fc Fix variable type. 2015-05-24 22:52:26 -03:00
Lioncash
d3768d4fe8 Get rid of missing prototype warnings 2015-05-14 21:30:39 -04:00
Yuri Kunde Schlesner
4c0b428cde Remove pointless casts and fix variable types. 2015-05-14 04:27:30 -03:00
archshift
a7912ecfe6 Remove unused framebuffer.h 2015-05-13 22:32:42 -07:00
archshift
b93dd813f5 Fix reference to a pointer being written to file instead of a pointer. 2015-05-13 22:02:24 -07:00
Lioncash
9f711deb48 main: Get rid of unused variables. 2015-05-11 10:21:59 -04:00
archshift
3b8608fee2 Split out NTR and CTR commands into their own files 2015-05-10 12:51:46 -07:00
archshift
bd925bae17 Split up gamecart.c/h into multiple protocol files 2015-05-10 00:53:09 -07:00
archshift
de5f58b7a0 Move gamecart files to their own folder
Preparation for splitting them up into multiple files
2015-05-10 00:31:52 -07:00
archshift
bc5aa24d4f Move includes into source/ directory, some small cleanups 2015-05-10 00:14:42 -07:00
archshift
2c131f4c63 Rename Cart.cpp/h to gamecart.c/h, actually use its header file 2015-05-09 23:42:30 -07:00
Tony Wasserka
c4959d20a5 Initial commit 2015-05-04 15:32:23 -07:00