mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-07 13:54:29 +00:00
25 lines
477 B
C
25 lines
477 B
C
static __attribute__((used)) char* rcsid = "$CVSHeader$";
|
|
/*
|
|
*
|
|
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
*
|
|
*/
|
|
|
|
#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;
|
|
}
|