2004-12-21 18:00:23 +00:00
|
|
|
static __attribute__((used)) char* rcsid = "$CVSHeader$";
|
2004-12-16 23:25:03 +00:00
|
|
|
/*
|
|
|
|
*
|
2006-09-15 14:55:39 +00:00
|
|
|
* (c) 2004 Laurent Vivier <Laurent@lvivier.info>
|
2004-12-16 23:25:03 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "libemile.h"
|
|
|
|
|
|
|
|
int emile_map_bootblock_get_type(char* bootblock)
|
|
|
|
{
|
|
|
|
if (!emile_map_bootblock_is_valid(bootblock))
|
|
|
|
return INVALID_BOOTBLOCK;
|
|
|
|
|
|
|
|
if (strcmp(&bootblock[11], "System") == 0)
|
|
|
|
return APPLE_BOOTBLOCK;
|
|
|
|
|
|
|
|
if (strcmp(&bootblock[11], "Mac Bootloader") == 0)
|
|
|
|
return EMILE_BOOTBLOCK;
|
|
|
|
|
|
|
|
return UNKNOWN_BOOTBLOCK;
|
|
|
|
}
|