|
mc-geticon - get icon from memory card image |
Daniel Balster/psxdev-tools
|
- SYNOPSIS OF mc-geticon
--quiet,-q be quiet
--help,-h print this text
--verbose,-v be verbose
--version,-V print binary version
--output=x,-o set output file
--number=x,-n icon number (1..3)
- DESCRIPTION OF mc-geticon
mc-geticon extracts one of the 4-bit icons of a PSX memory card file (which must be downloaded before). This is very useful if you want to see the icons of game savings in you desktop environment.
- EXAMPLES FOR mc-geticon
This is a very simple (and bad!) script for your GNOME desktop. Just run it in you memory card saving directory root and after that explore the directories with the GNOME file manager...
#!/bin/sh
# find memory card savings, extract the first icon and create a .name.icon entry
find -name 'B?S????*' -printf \
"mc-geticon '0.000000' | timtoppm | pnmscale -xysize 32 32 | pnmsmooth | ppmquant 256 | ppmtoxpm > '.0.000000.icon'\n" \
| sh
# for all .icon entries create a mime key (which is a very bad hack :-)
find -name 'B?S????*' -printf \
"image/-1.995358:\n\ticon-filename=$PWD/.-1.994374.icon\n\n" \
> $HOME/.gnome/mime-info/gnome.keys
# for all .icon entries create a new mime type...
find -name 'B?S????*' -printf \
"image/0.000000\n\text:0.000000\n\n"
> $HOME/.gnome/mime-info/gnome.mime
- NOTES ON mc-geticon
mc-geticon could also be used to automatically create web pages with game savings!
| |