Commit Graph

16 Commits

Author SHA1 Message Date
suloku
9a3c7ba11d Add device selector
- command line for both wii and gamecube
- support sdgecko in wii mode
- you can now insert/remove devices without reboot via device selector
2021-11-03 10:00:28 +01:00
suloku
23f6784e81 * RAW read/restore functions use a lot less memory (lead to problems in recent builds with 2048 block memory card)
* Reworked raw restore/read functions (they hopefully work correctly now for all memory cards)
* Fixed bug in libogc's card.c preventing to correctly write from block 1024 onwards in 2048 block cards (right now needs modified libogc to compile and work, since we aren't using our own card.c/h anymore).
2021-10-10 00:24:01 +02:00
DacoTaco
44380a5573 fix memory card raw access to use the (future) exposed libogc functions 2021-06-21 20:51:28 +02:00
suloku
bf825559fb Add folder code for Raw restore 2017-04-05 20:37:55 +02:00
sulokutdcmago
2493ec609d Disabled __sector_erase() check when raw restoring as some unofficial cards seem to have problems with it.
Corrected typo in buffer checking in raw.c

Note: not updating debug version because the changes don't affect its code
2014-01-05 20:15:24 +00:00
sulokutdcmago
071e9d9b60 Corrected alpha blending (it was wrong all along, not very noticeable with current colors)
DrawBoxFilledGradient can modify the midpoint of the color gradient
Waits user to release the buttons (to avoid accidental restores)
Shows Memory Card free blocks in restore/backup mode
Shows page number in file selector
Icon won't try to load in raw modes.
Now can hold up/down to scroll the list. Also can use left/right to jump 5 elements up or down (can also be hold)
File list will always have the same order (previously looping back from first item filled the page, leading to repeated savegame entries when returning to page 1)
Uses retracecount as default method for icon animation (same timing as IPL and wii system menu)
Fixed sd gecko slot selection in GC mode (previous tried to use the same slot for memory card and sd gecko)
Shows filename when prompted to overwrite
Double check when raw restoring to ensure restore is correct (makes it a little slower, from 11 blocks/second to 9/blocks second roughly)
2012-10-07 11:18:19 +00:00
sulokutdcmago
b9af1e0967 Now shows image and inserted card serial number in raw restore mode. 2012-09-11 17:41:30 +00:00
sulokutdcmago
27d7d63aed Couldn't backup a raw image if the directory didn't exist, now it will create the directory, just as when backing up savegames 2012-09-07 15:20:09 +00:00
sulokutdcmago
114c37df45 Changed raw backup filename, instead of just "Backup" the blockcount is used as filename.
Ready for 1.2c
2012-09-06 13:55:16 +00:00
sulokutdcmago
c544f74fea Added message, in gamecube mode reading is too slow and it seems like the app crashed when reading big memory card images (64/128 megabits), when it's actually reading the file. 2012-09-06 13:18:59 +00:00
sulokutdcmago
4a5dda6990 Just playing safe with the pointers, no need for release since CardBuffer is always initialized with malloc, either updating its value or setting it NULL 2012-09-06 13:11:24 +00:00
sulokutdcmago
b2d51a48ed Solved bug produced by a previous version of getserial()... it didn't affect the program's functionality though 2012-09-06 10:11:27 +00:00
sulokutdcmago
9d26c0aa4b Memory not properly freed in raw backup/restore functions, so it would eventually run out (a 2048 blocks card could only be backed up or restored once) 2012-09-06 09:04:28 +00:00
sulokutdcmago
c80244c757 Finally fixed raw restoring thanks to tueidj pointing out that sectors need to be erased before writing to them. 2012-09-05 23:30:13 +00:00
sulokutdcmago
039655b648 Forgot to disable test code 2012-09-05 12:06:30 +00:00
sulokutdcmago
166ded3cf5 Increased lenght of filenames in selector
Added raw backup and restore modes, as well as format mode.
Raw write still has the same issues as in ctr-gcs with official cards.

Flash ID is checked before raw restoring (can be bypassed if memory card is changed after selecting the image, however size check can't be bypassed). This behavior is intentional.

Changed STATUSOGC definition to gci.h (defining STATUSOGC makes GCMM use the normal CARD_GetStatus and CARD_SetStatus functions instead of the EX versions)
2012-09-05 11:14:16 +00:00