Chameleon => DevTalk => Patches => Topic started by: nuiluidwde on May 15, 2010, 08:42:29 PM

Title: Additional Partition Types for GUI
Post by: nuiluidwde on May 15, 2010, 08:42:29 PM
Hi, I've made a patch that allows a new partition type to recognised by Chameleon, rather than being classed as generic. This means you can specify a new image, and optionally override the volume label.

Put pth.patch somewhere on your hard drive, then run the following to apply the patch and build Chameleon
Code: [Select]
svn co -r HEAD http://forge.voodooprojects.org/svn/chameleon/trunk
find trunk -name ".svn" -depth -exec rm -Rf {} \
patch -u -p1 -i /path/to/pth.patch

Now in any theme.plist file, add the following to the bottom:
Code: [Select]
Where xx is a partition type, see http://www.win.tue.nl/~aeb/partitions/partition_types-1.html (http://www.win.tue.nl/~aeb/partitions/partition_types-1.html) for a list, image.png is the path to any png file (relative to the theme directory), and label is an optional override (leave blank if undesired) for the volume label displayed underneath the icon in Chameleon. Here is an example:
Code: [Select]
1c:device_ntfs.png:VistaOSHere, I have an ASUS recovery partition which is the only way to boot Vista, so '1c' specifies the partition type, device_ntfs.png makes it look like a Windows drive, and VistaOS substitutes the blank partition name with an identifiable label.