Changes

Jump to: navigation, search

GCMM

11,568 bytes added, 08:05, 23 September 2017
Some formatting cleanup
{{cleanup|article|Needs cleanup and linked ZIP is 1.4d instead of 1.4e}}{{Infobox homebrewapphomebrew
| title = GCMM
| image = [[ImageFile:Gcmm-logo1.png]]| desc = Memory Card manager| type = Utilitiessystem tool
| author = suloku
| version = 1.04f| download = [httphttps://code.googlegithub.com/psuloku/gcmm/ Google Code]releases| source = [httphttps://code.googlegithub.com/psuloku/gcmm/ Google Code]| peripherals = {{Wiimote1}} {{GCNController}} {{FrontSDHC}} {{USBMSD}} {{SDGecko}} {{GCNMemoryCard}}| hbc hbb = 1yes
}}
A GCMM is a GameCube Memory Card managerManager.
GameCube/Wii Memory Manager is an application to backup Nintendo GameCube savegames.
Gcmm GCMM is a project started by dsbomb and justb, which is based on Askot's modification to add SD support to the mcbackup libogc example.
I (suloku) have Suloku has updated the code to newest libraries to port it to the Wii system, and what I find more important: restoring savegames now works properly. == FEATURES ==
== Features ==
* Backups and restores savegames into GCI format
* Restores savegames in GCS/SAV format* Deletes savegames from slot B memory card* Backups memory card raw images in .raw format* Restores memory card raw images from RAW/GCP/MCI format* Format the memory card
* Wiimote and GameCube controller support
* Power button support
* Front SD and FAT32 USB device (wii) and SDGecko (gcgamecube) support* Shows savegame information, alongside animated Icon and Banner!* A (somewhat) nice UI
* Open Source!
== UPDATE HISTORY Changelog ==1.4f - April 5, 2017* dragonbane0 made a mod of version 1.4c with folder selection and alphabetical sorting. Zephiles pointed this out and the changes have been merged with some little extra tweaks. Thanks you both!
1.4e - February 27, 2016* Fixed bug in card.c that prevented correct backup/write of saves with same filename but different case. Bug affected Timesplitters 2, probably Timesplitters 3 too. Thanks to DakuTree for reporting and Antidote for fixing. 1.4d - August 8, 2015* Fixed bug in card.c that prevented writing to the last block of the memory card, preventing restoring a savegame that would fill the memory card (thanks to undergroundmonorail)* Fixed bug in card.c that prevented correct block freeing when deleting a file and only was fixed by using the memory card on official software (the wii/gamecube save manager or probably also games)* Added libogc fix for a bug in card.c (the bug didn't affect GCMM, it was fixed in 1.4b, but I didn't change card.c)* Changed button presses for single savegame delete to prevent unvoluntary savegame deleting 1.4c - January 5, 2014* Disabled __sector_erase() check when raw restoring as some unofficial cards seem to have problems with it. 1.4b - September 3, 2013* Card initialization was wrong all the way, wich lead to savegames of the same game of different region or those that shared similar filenames (Twilight Princess and WindWaker) to not work properly. Thanks to antidote.crk for noticing. (read considerations sections for more info)* Added version display 1.4a - February 15, 2013* Fixed SD Gecko when inserted/swapped at slot selection screen in GameCube mode.* FLash ID display was missing a byte* Changed some text that may confuse the user* Made font sizes more coherent 1.4 - October 8, 2012* Animated icon alongside several (minor) graphical improvements* Ability to select SD Gecko slot in GameCube mode (just like Wii mode SD/USB prompt)* Moved "Backup All" to Backup Mode (press R/1 when in Backup Mode)* Added an analog "Restore All" in Restore Mode (overwriting is supported)* Shows filename when prompted to overwrite (also in "Restore All")* Savegame permisions are shown in a more explicit and user friendly way* Shows memory card freeblocks* Page number display in file selector* Left and right now scroll 5 file entries at once* Scrolling of file entries can be done holding the button (up/down/left/right)* Added security checks to Raw Restore Mode* Added some special characters to the font (needed for savegame comments)* Minor code tweaks* Lots of thanks to bm123456 and themanuel for beta testing and support! 1.3 - September 14, 2012* Shows card/image serial number in Raw Restore Mode* F-zero and Phantasy Star Online Ep I&II and Phantasy Star Online III savegames are patched uppon restoring so they will work on target card (by Ralf)*Lot's of thanks to Ralf at [Whathttp://board.gscentral.org/retro-hacking/53093.htm#post188949 gscentral.org forums] 1.2d - September 8, 2012* Previous version couldn't raw backup if backup folder didn't exist in sd/usb* Added (double)overwrite prompt when restoring a savefile to memory card (Nano/Excelsiior's idea)* Updated graphics so raw mode commands are less cryptic (wii mode design based on JoostinOnline's for GCMM+)* Use DejavuSans as font (much better readability) from GCMM+ by Nano/Excelsiior 1.2c - September 6, 2012* Raw backups are now named with the number of blocks: insted of Backup_*timestamp*.raw now it is 0059b_*timestamp.raw, 2043b_*timestamp.raw...* Minor code changes (just for safety) 1.2b - September 6, 2012* Solved a potential bug, 1.2 and 1.2a seemed unaffected by it. 1.2a - September 06, 2012 * 1.2 wasn't correctly freeing memory and eventually raw backup and restore would hang the app (a 2043 block card would make it hang at the second attempt to raw backup the card) 1.2 - September 06, 2012* Added raw backup mode (in .raw format, compatible with dolphin and devolution)* Added RAW/GCP/MCI support for raw restore mode* Added format mode* Flash ID of inserted card and SD image are shown in Raw Restore Mode* Protection against writing a raw image to the wrong card (trough Flash ID checking)* Raw mode works with official and unofficial cards, as well as gci mode (thanks to tueidj for pointing me in the right path!) 1.1 - August 29, 2012* Icon and banner by dronesplitter!* Added USB-SD selection in wiimode (only at boot)* Added card slot selection (wii mode only)* Propper GCI backup and restore. Now GCMM uses __card_getstatusex and __card_setstatuex, which provide a more 1:1 backup/restore* Correctly displaying savegame Date information* Savegame information rearranged.*Accepted PlabloACZ and Picachu025 modifications, with the following changes:** Tweaked mount function** Filenames are no longer prefixed with a number for current sesion. Instead, savegames are suffixed with a number. When backing up a savegame if the same file exists on SD it will be prefixed with a growing number (if savegame_00.gci exists, then it will try savegame_01.gci, savegame_02.gci... and so on)** Infinite loop can't happen when backupping a savegame as in r11 MOD 2. r11 MOD 2 (Pikachu025) - September 11, 2011* 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 New ugly but does its job. Feel free to fix, I don't have Photoshop or anything here. r11 MOD (PabloACZ) - September 09, 2011* 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 [http://code.google.com/p/gcmm/issues/detail?id=1#c25 patch posted by jcwitzel in December 2009].* The Makefiles were modified to include the zlib in the libraries section. It seems that the latest libFreeType PPC port needs it to work.* **Hopefully** Added compatibility with Official GameCube Memory Cards ([http://devkitpro.svn.sourceforge.net/viewvc/devkitpro?view=revision&revision=4049 see this]). According to a friend of mine, it works with a 256 blocks Memory Card.* Compiled with DevKitPPC r24, libogc 1.8.8, libfat 1.0.10 and libFreetype 2.4.2. 1.0 - December 31, 2008]
* Updated to libfat
* Added Wii support
* Many other fixes/modifications for the user
== TO DO To Do ==* Add hotswapping (memory cards can be swapped, SD Gecko/SD/USB can't be swapped) == About Savegames and Raw Images ===== Raw Images ===A raw image is a 1:1 copy of the memory card. It can only be restored to the card it was made from.Note that unofficial cards share the same Flash ID, which allows restoring raw images between unofficial cards (as long as they have the same size).
* Add icon and banner display for the savegames* Add raw image read and write support* Add hotswappingThese limitations can be solved with [http://code.google.com/p/gcmm/wiki/Raw_Tools Raw Tools].
== LIMITATIONS ==For example:You can grab a 59 block card raw image from an unofficial card and modify it so you can restore it to your 1019 blocks official card, mantaining the serial number of the card so your protected savegames still work.
=== Wii ===Currently only third party memory cards note: as of GCMM 1.3 protected savegames can be restored to any card and they will work due (thanks to some changes in wii mode still not handled by libogc.Ralf!)
=== Protected Savegames ===
This is just for information, as since GCMM 1.3 even serial protected savegames (F-Zero and Phantasy Star Online) can be restored to any memory card.
Protected There are two kinds of protected savegames: * Permision protected savegames: this savegames can't be moved/copied from the Gamecube/Wii memory card manager. These saves can be backed up and restored without problems by GCMM* List of known permision protected savegames: Medal of Honor: Frontline, Pokemon Coloseum, Pokemon XD, Fire Emblem. * Serial protected savegames: this savegames can't be moved/copied from the Gamecube/Wii memory card manager and will only work in the card they were backupped from. This protected savegames are encripted with rely on the "unique" ramdom serial number that is given to a the memory card each time when it is formated. That's why they won't work in other cards and why they won't work on the same card if it has been formatted. Due * List of known serial protected savegames: F-Zero GX, Phantasy Star Online Ep I&2, Pahtasy Star Online III Restoring a raw image to this fact a diferent card won't work, it has to be the savegame same card (it will only work on even if the original memory card it was backuped formatted). Please note that all unofficial cards share the same Flash ID (which is different from if that card hasn't been formatedthe serial number), allowing raw image restoring between unofficial cards (as long as they are the same size).
To be confirmed if some protected savegames also rely on the block number the savefile starts (or how many blocks where occupied before the savegame was created).
Restoring a raw image to a diferent card has still to be tested to see if that will permit using a protected gamesave on another memory cardAs of 1.1 restored savegames mantain the savegame's original permisions (they are reseted when game is saved again anyways)
*Known protected savegames*: Medal of Honor: Frontline, F-Zero GX, Pokemon Coloseum, Fire Emblem=== Other Savegame Formats ===There are computer programs that can transform other savegame formats into GCI (currently GCMM supports SAV and GCS restoring).
=== Other GCP/RAW format is a raw savegame formats ===image of the memory card. At the moment creating a raw image is possible thanks to Masken, but there are still problems when restoring.
There are computer programs that can transform other savegame formats into GCIMCI format (createad by softdev's sdmc) is a raw image of the card (as GCP/RAW), preceded by a 64 byte header.
GCP format is == Considerations ==Users:* If you extract a raw savegame image of device (USB, internal SD, USB gecko), it won't work againt. If you did so, reboot the memory cardGCMM. At On the contrary* Memory cards can be extracted/inserted at will at the moment creating a raw image main menu screen. It is possible thanks not recommended to Maskenchange the card in any other screen.* Dolphin (wii/gc computer emulator) has a nice memory card manager, but there are still problems when restoring.check it out!
About USB devices:* Two of my USB devices won't work with GCMM, but those same devices make The Homebrew Channel crash. If you have problems try another usb device or an SD card. Developers: * LibOGC card functions works with time functions that use Epoch (seconds since jan 1, 1970) as reference, while GameCube works with seconds since jan 1, 2000). The difference is 946684800 seconds* GCMM now uses libogc 1.8.11 git (2012-07-25) card.c, card.h and system.h with tueidj's patches for proper memory card unlocking. It would be wise to update those files in GCMM if changes are made to libogc concerning other functions. Note that even if libogc asumes the changes, as GCMM now uses some static functions from libogc, it needs card.c and card.h, but if libogc updates the sramex structure (system.h) and fixes the checksums in card.c, system.h will no longer be needed.* Very good sources of documentation are libogc and dolphin's source code. == SETUP & INSTALLATION Setup and Installation ==
Unzip the archive. You will find the following folders inside:
apps Contains Homebrew Channel HBC ready files(see Homebrew Channel HBC instructions below)
gamecube Contains GameCube DOL file (not required for Wii)
 
The savegames are read and stored to the following dir: sd:/MCBACKUP/
 
=== Wii ===
On the Wii, the savegames will be read from and written to the front SD slot or FAT32 USB device.
The user will be prompted at startup for which device to use.
If the selected device isn't available, GCMM will try to use the other device (i.e: user selects usb device but there's none connected, so GCMM will try to use the internal SD).
Memory card can be in either slot.
On the Wii, the savegames will be read from and written to the front SD slot.Memory card should be in slot B. === Gamecube===
On the GameCube you will need a Gecko SD adapter in the slot A and place the memory card on slot B.
== Loading / Running the app == === Wii - Via Homebrew Channel HBC === The most popular method of running homebrew on the Wii is through the HomebrewChannelHBC. If you already have the channel installed, just copy over the apps folderincluded in the archive into the root of your SD card.
If you haven't installed the Homebrew Channel yet, read about how to here:[http://hbc.hackmii.com/here].
=== Gamecube ===
You can load gcmm via sdload and an SD card in slot A, or by streaming it to your Gamecube, or by booting a bootable DVD with gcmm on it.
A good source for information on these topics is at http://www.gc-forever.com/wiki/index.php?title=Booting_Homebrew
You can load gcmm via sdload and an SD card in slot A, or by streaming it to your Gamecube, or by booting a bootable DVD with gcmm on it. This document doesn't cover how to do any of that. A good source for information on these topics is the tehskeen forums: http://www.tehskeen.com/forums/ == CONTROLS Controls == 
They are shown at the screen.
== COMPILING ==Raw Mode Controls====Hold L (gamecube pad) or B (wiimote) then press the corresponding button* Raw Backup Mode: GC_pad L+Y , Wiimote B+Minus* Raw Restore Mode: GC_pad L+X , Wiimote B+Plus* Format Card Mode: GC_pad L+Z , Wiimote B+2
== Compiling From Source ==
Currently gcmm uses:
* [http://sourceforge.net/projects/devkitpro/files/devkitPPC/ DevkitPPC r26]
* [http://sourceforge.net/projects/devkitpro/files/libogc libOGC 1.8.11 git (2012-07-25)]
note: it compiles and runs fine with 1.8.11 release
* [http://sourceforge.net/projects/devkitpro/files/libfat/ libfat 1.0.11]
* [http://sourceforge.net/projects/devkitpro/files/portlibs/ppc/ libFreeType 2.4.2 port]
*DevkitPPC r15: http://sourceforge.net/project/showf...ease_id=306949*libOGC with Hermes patches: http://gcmm.googlecode.com/files/dev..._by_Hermes.rar*libfreetype 2.3.7 port by Tantric: http://www.tehskeen.com/forums/showthread.php?t=9404 == CREDITS Credits == *SoftDev for his contributions to the GC/WII scene*Costis for helping with some doubts, he's allways there*Masken for his code on raw data reading/writing*Justb & dsbomb for originally creating gcmm*CowTRobo & Samsom for very useful old sources*Tantric for pointing out that official memory cards won't work on wii mode, which encouraged me to continue gcmm as all my previous efforts where in vane due to using an official card for the testing.* tueidj, for his patches and very useful information and support. Official memory cards work due to his work.* dronesplitter for banner and icon implementation* PlabloACZ and Picachu025 for updating the source.* Nano(Excelsiior), for inspiring me to finally working again on GCMM* Ralf at gscentral.org forums, for F-Zero and PSO savegame support.* bm123456 and themanuel for beta testing and support* Lots of thanks thanks to everyone!
269
edits

Navigation menu