Commit Graph

58 Commits

Author SHA1 Message Date
suloku
95c737c2af Minor text changes and cleanup 2021-11-20 10:24:45 +01:00
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
6db7f5444a Add dark mode
-WII/GC: added Dark mode theme
-Added more card fixes by Extrems in libogc2
-Use definitions to easily change font colors
GC
- Change background depending on fat device
Todo: add device selector to gamecube
2021-10-19 13:25:27 +02:00
suloku
f85e42da3d SD2SP2 fix
- Changed to libogc2 to fix bug in sd2sp2 mounting when it has already been mounted once (even on another dol file) without rebooting. (will still compiles with libogc)
- Using custom card.c and card.h (again) since libogc2 is missing some functions
- Fix multi-sector write by extrems in card.c
- Show current device (sdgecko/sd2sp2/no device) under version string for gamecube
- Changed boot sequence and added support for cli file based command line arguments to force a device.
- Fixed exit/reboot secuence
2021-10-15 16:56:02 +02: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
120687e0b5 remove the need for the gci struct, as its now in libogc's card.h 2021-06-21 20:51:29 +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
1f84ac7372 -Update card.c to libogc unlock implementation (thanks for all these years tueidj!)
-System.h no longer needed, will use libogc's
-Know what we are doing when exiting in GC mode
2021-04-21 23:14:57 +02:00
suloku
82b84e636d - Fixed bug in card.c preventing creating a file when another which filename starts with full filename of new file already exists.
- Added SD2SP2
- Fixed GC exit (uses SYS_HOTRESET)
- In GC mode: when no stub is present, will try to load fat:/autoexec.dol before trying to restart.
2021-04-21 20:40:42 +02:00
Carsten Teibes
efa7c7e9ac Use bin2o for font and background image
(instead of manual assembly and copying)
2020-07-13 21:35:09 +02:00
Carsten Teibes
666e1ab807 Update Makefile to recent standards
Fix building
2020-07-13 21:04:15 +02:00
suloku
ba023ef5e7 Clean text going out of bounds in raw restore mode 2017-04-06 23:32:56 +02:00
suloku
3d9720c058 Display current path
Pseudo-icon for folders
Fix wrong text size in SD restore mode
2017-04-06 17:19:21 +02:00
suloku
ff7b0db015 Skip folders in ShowCardInfo() 2017-04-05 22:46:30 +02:00
suloku
bf825559fb Add folder code for Raw restore 2017-04-05 20:37:55 +02:00
suloku
7133bf399d Added folder and alphatebital sorting support by dragonbane0. 2017-04-05 19:49:21 +02:00
suloku
75a5e024b7 Fixes: https://github.com/suloku/gcmm/issues/24 2016-02-27 21:25:40 +01:00
suloku
aedfb36614 Ready for 1.4d release:
* 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
2015-08-10 12:33:28 +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
5c04c9a076 * 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
* Prepared for debug version
2013-09-03 15:18:42 +00:00
sulokutdcmago
88a323743e 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
2012-11-12 20:17:23 +00:00
sulokutdcmago
4d69c9c175 Ready for 1.4:
-Added some characters to the font (for comment displaying)
-Changed background
-Tweaked a little to have some sort of initial screen rather than a black background
-Minor graphical tweaks
2012-10-07 22:19:13 +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
bc4b511ff1 Changed icon loading code for proper handling of icons that use "blank frames" such as Luigi's Mansion and Pikmin. All icons should be correctly displayed now.
2 methods for showing the icos: time based and frame based (defined in freetype.h)
2012-10-06 09:53:16 +00:00
sulokutdcmago
3c82ef2e0e Icon centered when there's no banner
Function to get free blocks in card library
Save permissions display is more user friendly
Better screen cleanup
Some helper macros in gci.h
2012-10-06 09:43:50 +00:00
sulokutdcmago
4c660737eb Disabled Backup All mode and moved it to Backup Mode (press R or 2).
Similarly, now all savegames in MCBACKUP directory can be restored at one by pressing R or 2 in Restore Mode.
2012-10-02 22:44:29 +00:00
sulokutdcmago
4952ad60a3 Fixed typo (previous revision only animated well icons with 8 frames)
Simplified icon animation logic
2012-09-28 13:20:06 +00:00
sulokutdcmago
17daeaf37c Icon retrieving actually stops when the first entry with animation speed = 0 is found
This fixes Baten Kaitos and Wario Ware Inc. (Wario ware was working in previous revision because it only has animation bits set for actual icons)
2012-09-28 10:02:39 +00:00
sulokutdcmago
492d95a25e - Gamecube mode prompts for SD gecko slot (then uses the other slot for memory card)
- Added icon animation

Baten Kaitos icon is messed up, dolphin retreives it fine. As time splitters, it has extra bits in 0x07 and seems to use RGB and CI icons
Luigi's mansion icon is unproperly animated. More information about direntry values and how animation info is stored is needed.
2012-09-27 17:41:05 +00:00
sulokutdcmago
01478552aa Fixed icon number retrieving (thanks to dronesplitter)
(This fixes luigi's mansion for example)
2012-09-24 09:21:19 +00:00
sulokutdcmago@gmail.com
ca016f3151 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.
Lot's of thanks to Ralf at gscentral.org forums
http://board.gscentral.org/retro-hacking/53093.htm#post188949
2012-09-14 15:03:10 +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
4b58d5ed0b Changed font.ttf
Rearranged some texts for new font
Added overwriting (with prompt) when restoring a savegame
Forgot to set the file attributes when using the normal Card_setstatus functions
2012-09-08 10:08:58 +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
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
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