summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/sansapatcher/sansapatcher.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rbutil/sansapatcher/sansapatcher.c b/rbutil/sansapatcher/sansapatcher.c
index cc1cc8a0a4..aa13df00e5 100644
--- a/rbutil/sansapatcher/sansapatcher.c
+++ b/rbutil/sansapatcher/sansapatcher.c
@@ -623,6 +623,11 @@ int add_bootloader(struct sansa_t* sansa, char* filename, int type)
623 ,bl_length,n); 623 ,bl_length,n);
624 return -1; 624 return -1;
625 } 625 }
626
627 if (memcmp(sectorbuf+0x200+0x1f8,"RBBL",4)!=0) {
628 fprintf(stderr,"[ERR] Not a Rockbox bootloader, aborting.\n");
629 return -1;
630 }
626 } else { 631 } else {
627 memcpy(sectorbuf+0x200,bootimg,LEN_bootimg); 632 memcpy(sectorbuf+0x200,bootimg,LEN_bootimg);
628 } 633 }