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)
* Updated Makefile.gc and Makefile.wii to use portlibs (freetype 2.4.2)
Working with official cards, tested gci's from gamefaqs:
Luigi's mansion
Tales of Symphinia (USA savegame converted to PAL)
* Rearranged information display
* Using __card_getstatusex and __card_setstatusex to get a full GCI header
Tested and working (restore/backup) with official memory cards with no issues
This should allow proper GCI backup and restore and fix the problems with some banners corrupting.
* Changed filename string, filenumber at the end so all copies of a savegame are sorted toguether.
TODO:
Check and fix time and date in savegame information
Was failing because I fixed sramex structure in libogc without updating card.c (tueidj's patches)
All seems to work now.
TODO:
Check and fix time and date in savegame information
Backup and restore full GCI (directory entry) instead of only some data
Added choice for memory slot in wii mode
TODO:
- Add usb (choice and fallback when no sd inserted)
- Update memory card mounting and initation in all functions (currently card_open fails in all ocasions)
*tweaked mount function
*Filenames are no longer prefixed with a number for current sesion. Instead, when backing up a savegame if the same file exists on SD it will be prefixed with a growing number (if 00-savegame.gci exists, then it will try 01-savegame.gci, 02-savegame.gci... and so on)
*Infinite loop won't happen when backing up a savegame
[What's New r11 MOD 2 - September 11, 2011 - By Pikachu025]
* R (GC-Pad) / 1 (Wiimote) now launches a "backup all" mode, where all saves on the memory card are written to the SD card without any user prompts in the meantime.
* I came across a couple saves that had ridiculous filenames that refused to write to SD, so if the program comes across one of those, it'll now write them out as "illegal_name" instead of the actual filename.
* Filenames written to SD are now prefixed with a number, counting up from 1 for every file written during the current session. I added this since I had multiple files that resulted in the same filename.
* I also added a small check if the file was written correctly. If not, it'll retry. This probably results in an infinite loop when your SD card doesn't have enough free space, so ensure that I guess.
* I also (quite shoddily) edited the image listing all the options to add the new option, it's ugly but does its job. Feel free to fix, I don't have Photoshop or anything here.
[What's New r11 MOD - September 09, 2011 - By PabloACZ]
* SDGetFileList() function in sdsupp.c updated to reflect the changes in DevKitPPC/libogc from the last three years (diropen, dirnext and dirclose commands were replaced with opendir, readdir and closedir, respectively).
* Modified the MountCard() function in mcard.c to perform a probe on the GC Memory Card slot, to make sure it was mounted properly.
* Improved the compatibility with GCS/SAV files with the patch posted by jcwitzel in December 2009 (http://code.google.com/p/gcmm/issues/detail?id=1#c25).
* The Makefiles were modified to include the zlib in the libraries section. It seems that the latest libFreeType PPC port needs it to work.
Clear the CommentBuffer and FileBuffer prior to loading a sd file.
Clear CommentBuffer in ReadFileHeader (mcard.c)
Modified video initialization to support widescreen and progressive cable.
Display will always have 480 lines height (program compatible with all tv modes)
Added propper file info showing.
Added support for the permision key atribute, but restoring won't work, always restores as xCP (disabled)
Makefiles modified to have its own build dirs.