summaryrefslogtreecommitdiffstats
path: root/tools/ipodpatcher/ipodpatcher.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-12-13 08:58:10 +0000
committerDave Chapman <dave@dchapman.com>2006-12-13 08:58:10 +0000
commit2c9c10e0401bf2953e447f300f4813c87423b3b1 (patch)
tree574790c02b0a1a9e8734e769de7b481652800752 /tools/ipodpatcher/ipodpatcher.c
parent45895df35d9e7bdd7389b533aba344fbbbe4b42b (diff)
downloadrockbox-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.c5
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(&sector[71],"iPod",4) != 0) {
+ if ((memcmp(&sector[71],"iPod",4) != 0) &&
+ (memcmp(&sector[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");