From c2ad6549fb337ce707e04aa441c9b492171a3b9d Mon Sep 17 00:00:00 2001 From: yzrh Date: Sun, 25 Dec 2022 18:03:01 +0000 Subject: Handle headless HN and page with no image. Signed-off-by: yzrh --- src/cnki.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cnki.h') diff --git a/src/cnki.h b/src/cnki.h index 237a2c1..193e69b 100644 --- a/src/cnki.h +++ b/src/cnki.h @@ -16,6 +16,8 @@ #define ADDRESS_HN_PAGE 0x0090 #define ADDRESS_HN_OUTLINE 0x0158 +#define ADDRESS_C8_PAGE 0x0008 + #define ADDRESS_KDH_BODY 0x00fe #define KEY_KDH "FZHMEI" @@ -64,7 +66,8 @@ typedef struct _object_hn_t { int32_t text_size; int16_t image_length; int16_t page; - int32_t unknown[2]; /* TODO: what is it? */ + int32_t unknown; /* TODO: what is it? */ + int32_t address_next; char *text; struct _hn_image_t *image_data; struct _object_hn_t *next; -- cgit v1.2.3