1534 Commits

Author SHA1 Message Date
MechanicalDragon
445688c5fb fix clear friendlist script missing end statement 2021-03-09 18:04:27 +01:00
d0k3
8fa85437dd Added ability to dump tickets in title manager 2021-03-08 23:52:55 +01:00
d0k3
2cd6acb31e Enabled title checker tool in Title Manager 2021-03-08 18:35:49 +01:00
Garrett Holmstrom
c70a7db0f3 Include scripts in ntr firms
Unless the SD card happens to both be accessible and contain a
`gm9/scripts` directory, a system booted with a NTR cartridge isn't going
to have access to the stock scripts and will just show an error upon
going to the menu and selecting `Scripts...`.  This patch adds scripts
to the vram tarball only for ntr builds so they can be available even
on completely untouched systems.  It shouldn't be necessary when we've
booted from something else because in those cases we've already written
GodMode9.firm to flash using some other means and could have copied all
the scripts then.

One might argue this is sub-optimal because the menu will point there
even if a scripts directory happens to exist on the SD card.  One might
instead argue that that behavior is preferable because there's no telling
what gm9 version the scripts on the SD card were intended for.
2021-03-08 18:31:40 +01:00
d0k3
7bdd01738a Show a wait... message when uninstalling a single title 2021-02-27 12:18:39 +01:00
d0k3
152c6c4d5a Allow in-place encryption/decryption only on SD card 2021-02-27 12:18:14 +01:00
d0k3
32936345a6 Change support file recommendations 2021-02-23 16:10:44 +01:00
d0k3
30c5e1fd67 Add firstrun instructions to software keyboard
Adresses #601
2021-02-23 16:10:10 +01:00
d0k3
3f7eb872b8 Remove aeskeydb.bin warning for entrypoints other than b9s
Fixes #676
2021-02-23 15:45:09 +01:00
d0k3
bea16124a4 Readme updates v1.9.3pre1 2021-02-22 17:12:07 +01:00
d0k3
71e3b6f73c Trimming functionality for GBA cart dumps 2021-02-22 16:41:21 +01:00
d0k3
ee43fe328f Fix a compiler warning 2021-02-21 14:40:33 +01:00
Wolfvak
31389687ab event model seems to work
refactors all the ugly "pendingX" atomic operations into a single "Event" subsystem/interface thing with two operations

moves all existing code to use this instead

also changes the "bkpt" macro to also indicate unreachable code
2021-02-21 14:40:33 +01:00
Wolfvak
eadc1ab6b9 simplify the sharedmem buffers
also made the wait on boot unconditional
2021-02-21 14:40:33 +01:00
Wolfvak
9ecb90a2ba make interrupt handlers more lazy, most processing is done in interruptible context now
- completely moved MCU interrupt handling outside of the critical section
- refactored a bit of the PXI code and command names
- merge the I2C read and write cmds to be one
- remove SET_VMODE cmd, now it's always initialized to BGR565 on boot and to RGB565 on firmlaunch
- atomic-ize more stuff
2021-02-21 14:40:33 +01:00
Wolfvak
a6e20c641a initial mcu events implementation
- backlight power control is reinstated but currently buggy, for some reason the __builtin_trap is tripped on GFX_powerOnBacklights and GFX_powerOffBacklights

- also refactored a bunch of other code pertaining to mcu and other hw init, moved the gpu init to a later point since lcd init now depends on mcu events
2021-02-21 14:40:32 +01:00
d0k3
c4b3b582a7 Improved good renamer
... includes better naming for CIAs
2021-02-21 13:14:08 +01:00
d0k3
c31737c257 Title info and CIA metadata handling for encrypted CIA/CDN content 2021-02-20 12:21:40 +01:00
d0k3
2f61722aa4 Replace Tabs -> Spaces 2021-02-18 19:06:31 +01:00
d0k3
ab4316fd4e Prevent titleentry deletion in title manager 2021-02-18 18:55:36 +01:00
d0k3
24195c319a Install, build CIA, verify handling for TWL CDN content 2021-02-18 18:34:20 +01:00
d0k3
f9408a9c10 Improved CIA building, proper names for legit CIAs 2021-02-17 15:50:52 +01:00
d0k3
8114a0bd26 Higher level warning for editing 0:/Nintendo 3DS/ folder 2021-02-15 17:58:59 +01:00
d0k3
7620310b73 Build CIA and verify handling for TADs 2021-02-12 15:02:55 +01:00
d0k3
1e9fb36582 Check TMD signature when attempting legit CIA build 2021-02-12 12:50:23 +01:00
d0k3
9191a3244f Fix splash title underline for long build names 2021-02-09 19:14:24 +01:00
d0k3
af5e1a218e Show title id in title info 2021-02-08 19:04:12 +01:00
d0k3
667a1bf2c0 Install, verify, info handling for tickets 2021-02-06 14:47:40 +01:00
d0k3
48347c947a Reset to default splash.png 2021-02-05 13:16:01 +01:00
d0k3
e41b098843 Misc code improvements 2021-02-05 13:16:01 +01:00
d0k3
58fb9913d5 Fix possible overwriting of memory in vff.c 2021-02-01 18:59:55 +01:00
d0k3
899c8a8816 Updated mounted ticket.db categories
Fixes #641
2021-01-31 14:29:48 +01:00
d0k3
203cf7f9e3 Include obfuscated AES key database 2021-01-30 13:22:05 +01:00
d0k3
8ebb74b0bc Allow dumping NDS carts with secure area encrypted
Fixes #417
2021-01-30 13:22:05 +01:00
d0k3
af14376c84 Scripting: Allow escaping quotes with \"
Fixes #632
2021-01-30 13:21:20 +01:00
d0k3
647d5722aa gamecart: Replaced ID file with info file 2020-12-24 15:53:59 +01:00
David Korth
25a22d30d0 gamecart: Added a gamecart_id.bin file.
This contains the 4-byte chip ID.
2020-12-24 15:53:59 +01:00
d0k3
2f2b7faeb4 Disable title manager for mounted images 2020-12-24 15:53:59 +01:00
d0k3
efcfed31b3 Add title manager shortcuts 2020-12-24 15:53:59 +01:00
d0k3
7f6f6db410 Add title manager (replaces title search) 2020-12-24 15:53:59 +01:00
d0k3
e9599aad1c Fix building CIA from CDN files
fixes #661
2020-12-23 18:00:34 +01:00
d0k3
46a9a5819a System info: add UK as a sales region
Fixes #658
2020-12-23 16:32:57 +01:00
Wolfvak
65f6748dc1 Fix uninitialized variable on unaligned SPI Xfer
We use a stack-allocated u32 to store a temporary word that gets memcpy'd from a potentially unaligned buffer, but the size of the copy could be less than 4 bytes, therefore leaving garbage in the upper bits of said word. This fixes CODEC in Corgi3DS.
2020-12-23 14:56:18 +01:00
David Korth
d63db4bc6d gamecart: Use the chip ID's TWL flag to check if we should do TWL secure area init.
It's possible to flash a TWL-enhanced ROM image to an NTR dev cart.
This cart would function properly as a Nintendo DS game, but might
have issues on a DSi or 3DS.

GodMode9 couldn't dump this type of cartridge before because the ROM
header indicates TWL, but the cartridge doesn't understand the 0x3D
TWL secure area init command, so key exchange failed.
2020-12-09 21:53:43 +01:00
David Korth
cadd21508f gamecart: Use the chip ID to determine the ROM size.
Some development carts have an incorrect ROM header, but the cart ID
is always correct, so prefer the chip ID. If the chip ID is invalid
(unlikely), then fall back to the ROM header.
2020-12-09 21:53:30 +01:00
d0k3
01dd46ced3 Fix CMAC handling for TWLN and IMGNAND
Fixes #653
2020-11-25 23:48:36 +01:00
d0k3
e95e0fe90c Fix saves being deleted on uninstall 2020-11-25 23:08:00 +01:00
d0k3
608cf39e12 Fix #601
This adds SELECT as a shortcut ot the old button based input tool in the software keyboard
2020-11-11 00:07:09 +01:00
d0k3
df4619b213 Fix building standard CIA from TMD 2020-11-10 23:58:58 +01:00
aspargas2
cebc43792e
remove travis CI configuration 2020-10-28 18:40:26 -04:00