diff options
author | Dave Chapman <dave@dchapman.com> | 2006-12-13 08:58:10 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-12-13 08:58:10 +0000 |
commit | 2c9c10e0401bf2953e447f300f4813c87423b3b1 (patch) | |
tree | 574790c02b0a1a9e8734e769de7b481652800752 /tools/ipodpatcher/ipodpatcher.c | |
parent | 45895df35d9e7bdd7389b533aba344fbbbe4b42b (diff) | |
download | rockbox-2c9c10e0401bf2953e447f300f4813c87423b3b1.tar.gz rockbox-2c9c10e0401bf2953e447f300f4813c87423b3b1.zip |
Version 0.3 from 30 Jan 2006
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11745 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/ipodpatcher/ipodpatcher.c')
-rw-r--r-- | tools/ipodpatcher/ipodpatcher.c | 5 |
1 files changed, 3 insertions, 2 deletions
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"); |