X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=babel%2Fhugo.c;fp=babel%2Fhugo.c;h=42ad4f3a70d6e9c68f936cd385267b7f5f492062;hb=6fd0347f330cb24ef6145662023053a1c0f81a64;hp=0000000000000000000000000000000000000000;hpb=7d14a66ee234db0898de6fabb8f850ebc4bb733a;p=projects%2Fchimara%2Fchimara.git diff --git a/babel/hugo.c b/babel/hugo.c new file mode 100644 index 0000000..42ad4f3 --- /dev/null +++ b/babel/hugo.c @@ -0,0 +1,79 @@ +/* hugo.c Treaty of Babel module for hugo files + * 2006 By L. Ross Raszewski + * + * This file depends on treaty_builder.h + * + * This file is public domain, but note that any changes to this file + * may render it noncompliant with the Treaty of Babel + */ + +#define FORMAT hugo +#define HOME_PAGE "http://www.generalcoffee.com" +#define FORMAT_EXT ".hex" +#define NO_METADATA +#define NO_COVER + +#include "treaty_builder.h" +#include +#include + +static int32 get_story_file_IFID(void *s_file, int32 extent, char *output, int32 output_extent) +{ + + int32 i,j; + char ser[9]; + char buffer[32]; + char *story_file = (char *) s_file; + + + if (extent<0x0B) return INVALID_STORY_FILE_RV; + + for(i=0;i0x7e) return INVALID_STORY_FILE_RV; + for(i=0x0b;i<0x18;i+=2) + if (read_hugo_addx(sf+i) * scale > extent) return INVALID_STORY_FILE_RV; + + return VALID_STORY_FILE_RV; +}