Addendum: Here is the code I patched to add the XP logo... it simply matches any NTFS partition with the name "Windows XP" (well, what else would you call it). Works a treat.
Show content
===================================================================
--- trunk/i386/boot2/gui.c (revision 2072)
+++ trunk/i386/boot2/gui.c (working copy)
@@ -81,6 +81,8 @@
iDeviceFAT32_o,
iDeviceNTFS,
iDeviceNTFS_o,
+ iDeviceNTFS_XP,
+ iDeviceNTFS_XP_o,
iDeviceCDROM,
iDeviceCDROM_o,
@@ -157,6 +159,8 @@
{.name = "device_fat32_o", .image = NULL},
{.name = "device_ntfs", .image = NULL},
{.name = "device_ntfs_o", .image = NULL},
+ {.name = "device_ntfs_xp", .image = NULL},
+ {.name = "device_ntfs_xp_o", .image = NULL},
{.name = "device_cdrom", .image = NULL},
{.name = "device_cdrom_o", .image = NULL},
@@ -411,6 +415,8 @@
LOADPNG(device_fat32_o, iDeviceFAT_o);
LOADPNG(device_ntfs, iDeviceGeneric);
LOADPNG(device_ntfs_o, iDeviceNTFS);
+ LOADPNG(device_ntfs_xp, iDeviceGeneric);
+ LOADPNG(device_ntfs_xp_o, iDeviceNTFS_XP);
LOADPNG(device_cdrom, iDeviceGeneric);
LOADPNG(device_cdrom_o, iDeviceCDROM);
@@ -958,6 +964,10 @@
}
case kPartitionTypeHPFS:
+ if (!strcmp( device->label, "Windows XP")) {
+ devicetype = is_image_loaded(iDeviceNTFS_XP) ? iDeviceNTFS_XP : iDeviceGeneric; // Use Windows XP icon. Should revert to NTFS icon, but harder to spot error if we do so.
+ break;
+ }
devicetype = is_image_loaded(iDeviceNTFS) ? iDeviceNTFS : iDeviceGeneric; // Use HPFS / NTFS icon
break;
@@ -2150,3 +2160,4 @@
}
}
}