From 0fba85fe9ee8775aed331e4a9f60d91ac78ade9c Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sun, 10 Jun 2007 22:47:51 +0000 Subject: Accept both 0xb and 0xc as valid partition types for an ipod FAT32 partition. Some tools (e.g. fat32format) set the type to 0xc, and the Apple bootloader doesn't appear to care. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13614 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/ipodpatcher/ipodpatcher.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rbutil/ipodpatcher') diff --git a/rbutil/ipodpatcher/ipodpatcher.c b/rbutil/ipodpatcher/ipodpatcher.c index 1cc3343244..4d2bfa31a7 100644 --- a/rbutil/ipodpatcher/ipodpatcher.c +++ b/rbutil/ipodpatcher/ipodpatcher.c @@ -255,10 +255,11 @@ int read_partinfo(struct ipod_t* ipod, int silent) /* Check that the partition table looks like an ipod: 1) Partition 1 is of type 0 (Empty) but isn't empty. - 2) Partition 2 is of type 0xb (winpod) or -1 (macpod) + 2) Partition 2 is of type 0xb or 0xc (winpod) or -1 (macpod) */ if ((ipod->pinfo[0].type != 0) || (ipod->pinfo[0].size == 0) || - ((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != -1))) { + ((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != 0xc) && + (ipod->pinfo[1].type != -1))) { if (!silent) fprintf(stderr,"[ERR] Partition layout is not an ipod\n"); return -1; } -- cgit v1.2.3