1252 Commits

Author SHA1 Message Date
Wolfvak
6fb60e007a Fix #568 2020-01-02 21:08:44 +01:00
d0k3
622d0b053c FatFS R0.14 customization: public.sav detection 2020-01-02 21:08:44 +01:00
d0k3
e446bdbfa5 Update FatFS R0.13c -> R0.14 2020-01-02 21:08:44 +01:00
aspargas2
9e1b5e0be2 add a9lh stage2 payload removal to hax uninstall 2020-01-02 21:08:44 +01:00
aspargas2
7729605f9a fix #563 2020-01-02 21:07:22 +01:00
d0k3
e58760231a Fix building with FIXED_BRIGHTNESS
@thanks uwabami
2020-01-02 21:07:22 +01:00
d0k3
479fed35ef Further improvements to GBA VC save injection
... taking over @TurdPooChargers proposal.
2020-01-02 21:07:21 +01:00
d0k3
23a7ea7fd3 Beautified the GBA VC SD save handling code 2020-01-02 21:07:03 +01:00
d0k3
da412226be Fix #562 2020-01-02 21:07:03 +01:00
d0k3
cfae228bcf Disarm anti savegame restore on CTRtransfer 2019-10-28 22:31:21 +01:00
TurdPooCharger
a145e8d4a9 Add handling for SD GBA VC .sav CMAC.
When identifying a selected `00000001.sav`, cmac type testing is first attempted for 3DS saves with the **DISA** format. If a 3DS save data is not detected, the search continues at expected offsets for gba vc bottom slots in increasingly larger save sizes. For the GBA VC saves, this only calculates and corrects whichever of the two slots is newer or has the higher counter. There are five additional **CMAC_AGBSAVE_** types to differentiate the different gba save sizes. If a bottom slot was found but determined to be older based on comparing the counter values, the search defaults to **CMAC_AGBSAVE_SD**.

For the save counters, there are two scenarios where the value `00` is considered bigger than `FF` depending which slot has what value. If clarification is required, I will post a diagram at [issue #494](https://github.com/d0k3/GodMode9/issues/494) explaining what is meant by `00` bigger than `FF`.

Please make corrections and improvements to the coding as you see fit in your review. I am not well versed or efficient in the C/C++ programming language.
2019-10-28 21:47:43 +01:00
Wolfvak
499e301b7b - fix #555
- remove useless free(NULL) check
2019-10-28 14:16:55 -03:00
d0k3
624ac571e4 Improve GBA VC save injection
... see #548
2019-10-28 14:16:55 -03:00
d0k3
1889f4fd57 Simplify fsdrive code 2019-10-28 14:16:55 -03:00
d0k3
f184ad5701 Fix #554 2019-10-28 14:16:55 -03:00
d0k3
cfe535f20b Fix #551 2019-10-28 14:16:55 -03:00
Wolfvak
cf7fa9e401 Fix #549 2019-10-28 14:16:55 -03:00
Bálint Kovács
2e463c6b84 Change timeout on CardSPIWaitWriteEnd (#557)
Allows long waits for erase on things like Art Academy, but fails faster
elsewhere. In particular initialization fails almost instantly.
2019-10-26 09:12:18 -03:00
d0k3
2b05453685 Increase splash duration
Partial fix for #550
2019-10-20 22:57:36 +02:00
d0k3
1ceba1ed6f Update issue templates 2019-10-19 15:03:58 +02:00
d0k3
ae583300e6 Don't show the JEDECID file on carts that have none v1.9.0 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
d0k3
c847618048 Some minor cleanup 2019-10-14 23:48:15 +02:00
d0k3
422e54dca4 FIRMInstaller: Remove crypto check
... this interfered with installation to corrupted partitions and is no more required anyways.
2019-10-14 22:18:00 +02:00
Wolfvak
0f42426115 Fix unaligned crypto buffers 2019-10-14 13:11:23 -03:00
Wolfvak
915cb2d13e Hopefully fix #466 - now it resets the GPU/LCD into a known state instead of leaving the previous one on 2019-10-13 18:32:41 -03:00
Wolfvak
4890e4116f Remove repeated credit 2019-10-13 13:47:01 -03:00
Glazed_Belmont
5d61bebb25 added credits from the essential.exefs script (#547)
we both thought and wrote the script, so I thought the addition of the names would be great
2019-10-13 13:45:31 -03:00
Wolfvak
744ab6934b Integrate unmark into the release target 2019-10-13 13:43:35 -03:00
Death Mask Salesman
b32b63da27 Add Unmark as an external tool (#546)
`unmark` is a tool to produce an user manual from the `README.md`.

The `patch.json.gz` file contains a list of patterns to match and
their replacements.
If `unmark` complains about being unable to match a pattern, please open
an issue with the warning and your `README.md` at
[upstream](https://github.com/DMSalesman/Unmark).
2019-10-13 13:33:31 -03:00
DMSalesman
6d8226ac5e Update user manual 2019-10-12 17:32:36 +02:00
d0k3
a4270eda56 GM9MegaScript: Added essential.exefs dumping
... so I got at least one commit in that script.
2019-10-12 17:31:47 +02:00
d0k3
f24db1442e Fix #543 2019-10-12 17:14:16 +02:00
d0k3
0ec73520e6 Rewrote the dir/file/drive info dialogue 2019-10-12 17:10:33 +02:00
d0k3
dc746f69c5 Readme updates for changed stuff 2019-10-11 16:28:07 +02:00
Balint Kovacs
c1b04d85d4 Fix jedecid_and_sreg.bin offset reads 2019-10-11 16:24:08 +02:00
Balint Kovacs
2f24f37e7b Temporarily disable IR carts
And massively simplify chip detection
2019-10-11 16:24:08 +02:00
Balint Kovacs
c51d8a7191 Fix Art Academy save writing
Apparently, at least in my copy, the flash chip has a chance to fail a
PP command, and just never complete it. So we just try again.
2019-10-11 16:24:08 +02:00
Balint Kovacs
0308dfdebc Get rid of card_eeprom.c for real
Rebase brought it back
2019-10-11 16:24:08 +02:00
Balint Kovacs
f624850465 Handle errors when reading JEDEC ID vfile 2019-10-11 16:24:08 +02:00
Balint Kovacs
aea79aa634 Cut back on card definitions
Saves 400 - 440 bytes of .data
2019-10-11 16:24:08 +02:00
Balint Kovacs
bef427dfdb Code formatting for card_spi.c 2019-10-11 16:24:08 +02:00
Balint Kovacs
84d5f800a9 Get rid of card_eeprom.c, move spi.c to card_spi.c
It was bugging me that there was two spi.c's
2019-10-11 16:24:08 +02:00
Balint Kovacs
d2f596e7a3 Merge ARM11 spi and ARM9 spicard drivers
Also centralize device IDs into SPI.h
2019-10-11 16:24:08 +02:00
Balint Kovacs
48d8c48d12 Completely refactor SPI.h, write CTR flash
Also (hopefully?) write Art Academy, and also implement sector-based
write on Sanyo 256K chips.
2019-10-11 16:24:08 +02:00
Balint Kovacs
004341e1ef Add a little utility to test gamecard flash chips 2019-10-11 16:24:08 +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
38d9a23427 Minor cleanup of gamecart.c 2019-10-11 16:24:07 +02:00
Balint Kovacs
7b0a101f13 Add read support for CTR cartridge saves
I have done nothing, however, to decrypt them. There is also no write
support.
2019-10-11 16:24:07 +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