From 2c9c10e0401bf2953e447f300f4813c87423b3b1 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Wed, 13 Dec 2006 08:58:10 +0000 Subject: Version 0.3 from 30 Jan 2006 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11745 a1c6a512-1295-4272-9138-f99709370657 --- tools/ipodpatcher/ipodpatcher.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/ipodpatcher/ipodpatcher.c') diff --git a/tools/ipodpatcher/ipodpatcher.c b/tools/ipodpatcher/ipodpatcher.c index 7d311c835a..51592c8fb8 100644 --- a/tools/ipodpatcher/ipodpatcher.c +++ b/tools/ipodpatcher/ipodpatcher.c @@ -146,7 +146,8 @@ int read_partinfo(HANDLE dh, struct partinfo* pinfo) return 0; } - if (memcmp(§or[71],"iPod",4) != 0) { + if ((memcmp(§or[71],"iPod",4) != 0) && + (memcmp(§or[0x40],"This is your Apple iPod. You probably do not want to boot from it!",66) != 0) ) { fprintf(stderr,"Drive is not an iPod, aborting\n"); return -1; } @@ -310,7 +311,7 @@ int main(int argc, char* argv[]) char* filename = NULL; off_t inputsize; - fprintf(stderr,"ipodpatcher v0.2 - (C) Dave Chapman 2005\n"); + fprintf(stderr,"ipodpatcher v0.3 - (C) Dave Chapman 2006\n"); fprintf(stderr,"This is free software; see the source for copying conditions. There is NO\n"); fprintf(stderr,"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"); -- cgit