Commit Graph

37 Commits

Author SHA1 Message Date
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
8947f14bfc I'm sick of forgetting things when committing... 2012-09-06 14:01:21 +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
4002756d8b Forgot to update meta.xml again... 2012-09-06 09:06:14 +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
a0d3152d49 Updated meta.xml 2012-09-05 23:55:22 +00:00
sulokutdcmago
ad5aa0972b Updated readme.txt. Ready for 1.2 release! 2012-09-05 23:53:04 +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
eafd312411 Updated graphics for raw mode 2012-09-05 11:35:48 +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
sulokutdcmago
3033611a67 Version changed to 1.1.
Ready for release!
2012-08-29 09:44:23 +00:00
sulokutdcmago
b14bdd0289 Updated HBC meta.xml 2012-08-29 09:38:48 +00:00
sulokutdcmago
e1068529f3 Minor uptade to readme.txt 2012-08-29 09:33:19 +00:00
sulokutdcmago
c2d3200a4b * Updated readme.txt
* 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)
2012-08-29 09:28:00 +00:00
sulokutdcmago
cefa314593 * Fixed time info display
* 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
2012-08-29 01:08:56 +00:00
sulokutdcmago
62b51630e2 * Added tueidj's patched libogc (card.c and system.h) to the project, as they aren't in libogc and because GCMM now uses __card_getstatusex and __card_setstatuex.
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
2012-08-28 22:18:20 +00:00
sulokutdcmago
6489ba014e Fixed usb and memory card mounting
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
2012-08-28 21:01:54 +00:00
sulokutdcmago
4aa3f421d4 Added USB device support, with prompt and fallback to other device if not present.
TODO:

Check if time and date are correct in savegame information
For some reason SLOTB doesn't work as SLOTA...I think it's a bug in libogc
2012-08-28 16:19:39 +00:00
sulokutdcmago
6d299814b1 Added icon and banner showing by dronesplitter
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)
2012-08-28 15:33:50 +00:00
sulokutdcmago
9697319aed Compiling under latest libogc, libfat and devkitppc 2012-08-28 00:16:53 +00:00
sulokutdcmago
90051e8d46 Updated backgrounds
Made a proper makefile instead of bat files
2012-08-27 23:39:12 +00:00
sulokutdcmago
d62f8e2d9e Accepted PlabloACZ and Picachu025 modifications, with the following changes:
*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.
2012-08-27 23:00:36 +00:00
sulokuTDCmago@gmail.com
82f3d63bf2 Additional byte swap pair for .sav files, thanks to lpfaint99 (in dec 9, 2009) 2012-08-27 10:55:41 +00:00
sulokuTDCmago
160014f896 Added wiiload to the run command. Btw rev 11 seems to work fine on wiimode. Further tests to be done. 2009-08-10 16:58:07 +00:00
sulokuTDCmago
4c1a94d380 Added GCS and SAV support by lpfaint99. Updated to latest libogc and lifbat rev 3678. Serious cleaning and maybe rewritting must be done...
Added some casting to remove all the compiling warnings. This version has still to be tested.
2009-08-10 16:52:31 +00:00
sulokutdcmago
857b1996bb 2008-12-31 17:52:51 +00:00
sulokutdcmago
5f1c12712e Removed file/folder 2008-12-31 16:50:41 +00:00
sulokutdcmago
58b881867a freetype.c Added WaitPromptChoice and WaitButtonAB functions
mcard.c Added delete confirmation
main.c Inhabilited access to restore/backup modes when no sdcard is accessible.
2008-12-31 16:29:19 +00:00
sulokutdcmago
5c7b0ecbe0 Added GC/Wii_prepare.bat files for calling before Make. This gets the correct makefile and background picture before compiling.
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)
2008-12-31 15:55:20 +00:00
sulokutdcmago
e65f977bd6 Recovered broken GC support due to writting off the screen in drawstatusbar.
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.
2008-12-30 14:36:30 +00:00
sulokutdcmago
28c5464e0c 2008-12-29 19:18:07 +00:00
sulokutdcmago
56d0fd126e Removed file/folder 2008-12-29 19:16:59 +00:00
sulokutdcmago
361c89d8c6 2008-12-28 19:34:39 +00:00