summaryrefslogtreecommitdiff
path: root/tools/ipodpatcher
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
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')
-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)
146 return 0; 146 return 0;
147 } 147 }
148 148
149 if (memcmp(&sector[71],"iPod",4) != 0) { 149 if ((memcmp(&sector[71],"iPod",4) != 0) &&
150 (memcmp(&sector[0x40],"This is your Apple iPod. You probably do not want to boot from it!",66) != 0) ) {
150 fprintf(stderr,"Drive is not an iPod, aborting\n"); 151 fprintf(stderr,"Drive is not an iPod, aborting\n");
151 return -1; 152 return -1;
152 } 153 }
@@ -310,7 +311,7 @@ int main(int argc, char* argv[])
310 char* filename = NULL; 311 char* filename = NULL;
311 off_t inputsize; 312 off_t inputsize;
312 313
313 fprintf(stderr,"ipodpatcher v0.2 - (C) Dave Chapman 2005\n"); 314 fprintf(stderr,"ipodpatcher v0.3 - (C) Dave Chapman 2006\n");
314 fprintf(stderr,"This is free software; see the source for copying conditions. There is NO\n"); 315 fprintf(stderr,"This is free software; see the source for copying conditions. There is NO\n");
315 fprintf(stderr,"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"); 316 fprintf(stderr,"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n");
316 317