diff options
author | yzrh <yzrh@noema.org> | 2022-12-25 18:03:01 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2022-12-25 23:18:17 +0000 |
commit | c2ad6549fb337ce707e04aa441c9b492171a3b9d (patch) | |
tree | 611b43986a0c50d335ba69aafc8ace26cdcaffd3 /src/cnki.h | |
parent | d2826fa075544ada1fb9f530a375ef85f58c8ea0 (diff) | |
download | melon-c2ad6549fb337ce707e04aa441c9b492171a3b9d.tar.gz melon-c2ad6549fb337ce707e04aa441c9b492171a3b9d.tar.zst |
Handle headless HN and page with no image.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src/cnki.h')
-rw-r--r-- | src/cnki.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |