Commit Graph

406 Commits

Author SHA1 Message Date
Pk11
5408406626
Allow mounting 0000 as FAT image (#152) 2022-01-11 07:16:14 -07:00
Pk11
94f5fd73c3
Dump banner.sav for DSiWare too (#151) 2022-01-09 17:16:10 -07:00
Pk11
6669a5ebb3
Add dumping TMD files from title manager (#150) 2022-01-09 16:54:37 -07:00
Pk11
cc2bfed17c
Add title manager menu for easier DSiWare dumping (#149)
* Add title manager menu for easier DSiWare dumping

* Fix title manager not scrolling

* Change dumped DSiWare extension to `.nds`

* Sort titles alphabetically by banner title
2022-01-08 23:55:35 -07:00
Pk11
750e3cbf99
Fix getFileSize failing (#145)
* Try to fix getFileSize failing

* Fix file sizes over 2 GB
2022-01-08 15:31:41 -07:00
Pk11
3e92e876e9
Try to mount NitroFS from SysNAND and SDNAND (#148) 2022-01-08 15:30:46 -07:00
Pk11
454cdbcc50
Revert to malloc for allocating ramdrive on DSi (#147) 2022-01-07 23:18:10 -07:00
Pk11
d8bf2447ec
Clear cart info on eject outside of drive menu and detect ramdrive eject (#146)
* Fix cart info if ejected not in drive menu

* Fix a couple ramdrive issues

- Unmount ramdrive if Slot-2 RAM is ejected
- Fix potentially reading from the wrong location if numSectors > 1 and crosses between locations
- free ramdLoc on regular DS too
- Use calloc to 0 initialize, I saw it mess up occasionally on DSi too

* Update time in the Vblank handler
2022-01-07 20:35:49 -07:00
Pk11
21c8ad9e54
Fix breaking NAND when unmounting NitroFS (#144) 2022-01-06 01:48:47 -07:00
Pk11
ccf8d0200b
Add restoring DS saves on DS/DS Lite (#141) 2022-01-05 03:55:35 -07:00
Pk11
4aa294b444
Remove trying to remount flashcards (#140)
as it doesn't work anyways
2022-01-04 21:27:09 -07:00
Pk11
836c30e182 Fix always blocking SPI saves over 1 MiB
Noticed this right after marking the PR ready for review lol
2022-01-04 22:07:17 -06:00
Pk11
bec149de03
Add dumping DS saves using GBA cart save data (#138)
* Simplify GBA EEPROM FIFO wait

* Add dumping DS saves using a GBA cart's save data

* Don't try dump very large DS saves to GBA carts

* Don't show DS cart info on regular DS

you need to take the cart out to reinit it so info isn't loaded

* Change to 'writing save' for DS to GBA dumps

* Fix a couple bugs and typos
2022-01-04 20:54:45 -07:00
Pk11
a9a29204ab
Improve unmounting and various other bug fixes (#137)
* Various improvements to drive unmounting drives

* Add mounting DSiWare saves

They're FAT12 images, but libfat doens't like them without a little tweak since they don't have the 'FAT' identifier text

* Don't try to send DSi SD card status on regular DS

Fixes X and Y buttons being unresponsive
2022-01-03 20:08:43 -07:00
Pk11
e8c3a8596b
Improve AK2i secondary drive mounting (?) (#136)
* Improve AK2i secondary drive mounting (?)

* Ensure correct bus owner when getting DLDI
2022-01-03 19:37:12 -07:00
Pk11
574e5b26a6
Hide writing actions when drive is read-only (#134) 2022-01-03 00:39:17 -07:00
RocketRobz
cbb223a421 Always show SD unmount/remount option if flashcard DLDI isn't found 2022-01-02 23:25:41 -07:00
RocketRobz
c7fefecdcc Do not read NDS cart info if Slot-1 flashcard is mounted
Fixes lockup when highlighting Slot-1 FAT
2022-01-02 23:16:20 -07:00
RocketRobz
248d0244f3 Fix unmount/remount flashcard option being shown in DSiWarehax 2022-01-02 22:46:22 -07:00
RocketRobz
8edf33099b Run 3DS detection code and show Reboot option in DS mode 2022-01-02 22:36:38 -07:00
RocketRobz
c0a0c82fc0 Increase DSi/3DS RAM drive size by 3MB 2022-01-02 18:47:11 -07:00
RocketRobz
d05294f4bf Revert "Asynchrously clear MEP" to fix misdetected X button presses
This reverts commit 46f32cea1e.
2022-01-02 18:41:40 -07:00
RocketRobz
46f32cea1e Asynchrously clear MEP 2022-01-02 18:31:37 -07:00
RocketRobz
99624643f2 Replace vramcpy with tonccpy 2022-01-02 18:24:25 -07:00
Pk11
862fee8e68 Fix crash on mounting SD if booted without SD card 2022-01-02 15:13:36 -06:00
Pk11
bfb136c866 Don't attempt to create folder if no drive mounted 2022-01-02 15:05:38 -06:00
Pk11
2b8808ae6d
Autodetect SD removal and more bug fixes (#133)
* Autodetect SD removal, see desc

Also:
- Mark read-only drives as `[R]`
- Detect and respect write protect on SD card
- Don't attempt to remount SD card if not inserted
- Fix repo link on startup screen

* There are enough characters for `https`

I didn't notice there was actually 1 more column usable

Co-authored-by: RocketRobz <bobesh8@gmail.com>
2022-01-02 12:38:55 -07:00
Pk11
b3bdcabec2
Improve keyboard input (#132) 2022-01-02 12:35:21 -07:00
Pk11
60736a5fcd Fix warning in fcopy 2022-01-02 03:35:03 -06:00
RocketRobz
9d5e205a78 Bug fix 2022-01-02 02:03:43 -07:00
RocketRobz
3e8dd2f5c2 Add support for Slot-2 flashcard RAM
ALSO: Allow RAM drive to be used on DSi/3DS in DS mode with unlocked SCFG
2022-01-02 01:55:18 -07:00
RocketRobz
f4d324d2ba Fix MEP RAM drive not showing
Moved first 8 sectors of MEP RAM drive to Main RAM
2022-01-02 01:12:40 -07:00
RocketRobz
48b54d5d68 Fix warnings 2022-01-02 00:52:51 -07:00
Pk11
0f8b4c248e
Simplify RAM drives (#131)
* Simplify RAM drives

* WIP: Add Slot-2 RAM expansion RAM drive support
2022-01-02 00:46:49 -07:00
Pk11
aa2cfcab81
Fix remounting SD card (#130)
* Fix remounting SD card

* Fix SD label whitespace trimming

It was cutting at the first space, not the last one
Also clean up the function calls, `&sdLabel[0]` is the same thing as `sdLabel`
2022-01-01 20:52:21 -07:00
Pk11
5d5d05cf7c Fix No drives found! text being the wrong color 2021-12-31 21:23:42 -06:00
Pk11
bd7f069848 Remove unused strings 2021-12-31 21:22:01 -06:00
Pk11
aeb13dba29
Improve dumping menu, add metadata dumping (#128)
* Improve dumping menu, add metadata dumping

* Use `NONE` as fallback DS save instead of `UNK`

Matches GM9 for my DSTT and バトル&ゲット:ポケモンタイピングDS

* Fix metadata check for NAND save
2021-12-31 20:04:50 -07:00
Pk11
dc0bb54f7d
Update translations, show warning when loading language menu without NitroFS (#125)
* Update translations

Adds German and Simplified Chinese and credits to the README

* Add warning when changing language without NitroFS

* Add separate plural and non-plural strings

* Add hu-HU, it-IT, update other translations

Also adds a few missing letters to the font

* Update translator credits
2021-12-25 01:28:23 -07:00
Pk11
94682d63e0
Fix unmounting drives not responding immediately (#127) 2021-12-18 20:02:34 -07:00
Pk11
48881bb810
Fix color changing after opening keyboard (#126) 2021-12-18 19:24:41 -07:00
redstonekasi
6f163060b0 show correct text when deleting files 2021-12-10 09:56:25 -08:00
Pk11
117fb3f98a Update translations
Adds Russian and French (only partially complete) and a Kana only Japanese translation cause the Kanji font is kinda hard to read, it still has the proper one so you can choose either
2021-11-30 16:31:18 -06:00
Pk11
bf7a850701 Fix power off, hide Reboot in DS mode 2021-11-30 01:37:26 -06:00
Pk11
d653187818 Allow screenshotting in START menu 2021-11-29 21:37:19 -06:00
Pk11
1b6360df13 Use B button for "Press B to cancel"
somehow missed this one

force push because I missed one of the files
2021-11-29 21:36:27 -06:00
Pk11
90814b2ff2 Add START menu with language selector 2021-11-29 15:57:31 -06:00
Pk11
1602d4143e Fix fcopy progress bar 2021-11-23 16:30:51 -06:00
Pk11
70812b77a0 Add Kanji, Greek, Hebrew, Arabic to default font
Kanji are from k6x8 from littlelimit.net, so added that to the credits (I hope I credited that right), the rest are from nds-bootstrap with minor edits (and more major edits to Arabic)
2021-11-23 16:15:04 -06:00
Pk11
7c1635033a Make gm9i folder if it doesn't exist 2021-11-23 11:01:33 -06:00
Pk11
78e9bd9996 A couple derp fixes
- Allocate enough space for byte sizes
- Pass size to 'bytes' count
- Check lang ini not font path for lang reload
- Use 24 hour with 0 instead of space for filename date
2021-11-23 01:44:49 -06:00
Pk11
52355b98c7 Make a couple strings more flexible
Force push fixes some typos
2021-11-22 22:42:42 -06:00
Pk11
af1772a337 Fix clipboard overlapping control info 2021-11-22 22:17:59 -06:00
Pk11
e75b54db02 Fix using float printf on integer GB 2021-11-22 22:01:14 -06:00
Pk11
ac968a17ae Use the D-Pad characters for the file attributes
Also change the buttons a bit, that menu always confused me and I think this makes more sense, can change if wanted though
2021-11-22 21:41:22 -06:00
Pk11
11b5c4e523 Make GM9i translatable 2021-11-22 21:02:13 -06:00
Pk11
e44678598c Enumify drive number 2021-11-22 16:16:48 -06:00
Pk11
b5df5a6971
Fix GBA EEPROM 64 KB writing 2 banks (#116) 2021-11-07 16:12:45 -07:00
Pk11
b579cedd29
Fix GBA EEPROM saves (#114)
* Fix GBA EEPROM saves

* Clean up dumping error messages
2021-11-04 19:28:30 -06:00
Pk11
8a3685803d Improve EEPROM code
Still doesn't actually *work*, but it should be closer now.
2021-11-02 22:12:15 -05:00
Pk11
ae3ddd0c6c Use enums and fix warnings in gba.cpp
Also fix not erasing the GBA save before writing
2021-11-02 22:02:01 -05:00
Pk11
568c4dde5f Fix overdumping GBA ROMs
Thanks to gba-link-cable-dumper
https://github.com/FIX94/gba-link-cable-dumper/blob/master/gba/source/main.c#L19-L40
2021-11-02 18:39:46 -05:00
Pk11
cf0a86fa0b Add dumping non-SRAM GBA saves
Credit to savegame-manager for code
https://code.google.com/archive/p/savegame-manager/
2021-11-02 18:38:31 -05:00
Pk11
35d6f7fdca Remove unused non-functional BBDX code from auxspi 2021-11-02 15:51:05 -05:00
Pk11
486f846cbd
Show file creation/modification times in file info (#111) 2021-10-11 13:44:48 -06:00
Pk11
8de40f23ac
Fix freezing on boot on flashcard & getting GBA cart info (#110)
* Only check if 3DS in DSi mode

* Fix reading GBA cart info

* Don't do & on the arrays for the GBA info

I don't think it was breaking anything to do that? but it's not needed and I think it might be wrong somehow or other
2021-10-11 13:35:47 -06:00
RocketRobz
9e1c56fa2d
Merge pull request #108 from Epicpkmn11/nand-cart-dumping
Fix NAND cart dumping
2021-10-10 17:21:23 -06:00
Pk11
d608197df8 Fix NAND restore error message & variable name 2021-10-10 17:48:32 -05:00
Pk11
132f787623 Remove CARD_CLK_SLOW from NAND commands
Seems fine without it, maybe better?
2021-10-10 17:44:14 -05:00
RocketRobz
b9fcd7fa54 Properly allocate memory for RAM drive 1 2021-10-09 19:58:14 -06:00
RocketRobz
7750ab47c0 Detect 3DS console without reading NAND 2021-10-09 19:39:39 -06:00
Pk11
960c1ea7ad Only dump 64 MiB for Face Training
GBATEK says 82 MB RW section but now how much is save, nocash said 66 MB is save(?) on nesdev, but then melonDS makes a 64 MB save, since melonDS seems to work I'm just going to lower this to 64 MB incase going further can cause trouble.
2021-10-06 14:11:48 -05:00
Pk11
8e48ab82f6 Don't switch to TWL Blowfish for NAND saves
This doesn't seem to fully fix Face Training, but it might help?

Force push because I decided to undo disabling face training saves so it can still be tested
2021-10-06 14:10:16 -05:00
Pk11
bc4b0baf1f Fix dumping the save in the ROM
Technically this is actually more accurate, however it makes the dump not match a 'clean' dump (and there couldn't be a 'clean' dump like this as the save will always vary)
2021-10-06 01:00:24 -05:00
Pk11
294c4bee1c Fix NAND save writing and restoring 2021-10-06 00:51:38 -05:00
Pk11
0bc622b3d5 Fix NAND ROM dumping
yes. it was literally the 'random' number.
2021-10-05 00:30:37 -05:00
Pk11
0dedcfb9dd Improve extended header reading 2021-10-04 20:27:20 -05:00
Pk11
7b105c09a1 Fix NAND card header reading
It now tries to dump, but the rest of the dump is garbage. It tries the save too, but I think that's also garbage.

This breaks some things that worked before, marked with TODOs. I'll fix them once NAND works.
2021-10-04 18:08:12 -05:00
Pk11
d75ab87bfb WIP: Fix NAND cart dumping 2021-09-27 00:41:06 -05:00
Pk11
9de1d80ca1 Fix non-auxspi bytes progress 2021-09-15 17:35:50 -05:00
Pk11
e296e4cb68 Merge remote-tracking branch 'upstream/master' into bitmap-mode-and-cleanup 2021-09-15 17:34:52 -05:00
Pk11
c7694df14c
Fix restoring to ID 0xC22017 cards (#107) 2021-09-15 16:31:57 -06:00
Pk11
520327dcdf
Fix dumping saves from ID 0xC22017 (#106)
8 MByte, used in Art Academy (Spain) or at least some of them
2021-09-15 14:25:36 -06:00
Pk11
0f70de49d0 Derp fix 2021-09-02 20:19:00 -05:00
Pk11
490b536bf2 Copy over Arabic support from TWiLight
Currently not really needed, but if we make GM9i translatable (which I'll prolly do after this PR is merged) it'll be needed so might as well just do it now
2021-09-02 11:01:49 -05:00
Pk11
2bc47b299d Propely substr file names 2021-08-21 17:39:39 -05:00
Pk11
162700115d Speed up directory loading
Doesn't load the file size until displaying it which makes it *way* faster
2021-08-20 10:41:41 -05:00
Pk11
9ec144f4ea Fix resource leaks in calculateSHA1() 2021-08-18 00:38:19 -05:00
Pk11
4fd905f894 Fix file name being able to wrap 2021-08-15 17:26:12 -05:00
Pk11
c0e347f2b4 Fix double : in dumping prompts 2021-08-15 15:40:13 -05:00
Pk11
283f85b985 Show nitro: above carts in drive list 2021-08-15 15:38:24 -05:00
Pk11
9df88c6b7f Add taking screenshots to a few more places 2021-08-14 13:54:37 -05:00
Pk11
19be8dd77a Use 16 column hex editor when font small enough 2021-08-12 18:05:15 -05:00
Pk11
363ee012e2 Add some simple wrapping on spaces
Wraps on the last space within 10 chars of the end of the line
2021-08-12 17:44:27 -05:00
Pk11
bba0daa23a Add loading font from an FRF file 2021-08-12 16:56:52 -05:00
Pk11
ce49d1fdf9 Add padding space before file size 2021-08-08 08:27:11 -05:00
Pk11
6662d644d5 Fix right alignment on fonts divisible by 256 2021-08-08 08:26:33 -05:00
Pk11
974cfcca11 Merge remote-tracking branch 'upstream/master' into bitmap-mode-and-cleanup 2021-08-08 07:35:15 -05:00
Pk11
2ca30a9bd2 WIP: Use bitmap mode and clean up some things 2021-08-08 07:31:00 -05:00
RocketRobz
4dd589c391 Remove DSi mode check when trimming DSi ROM dumps 2021-07-31 20:54:24 -06:00