aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnki.h
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2022-12-25 18:03:01 +0000
committeryzrh <yzrh@noema.org>2022-12-25 23:18:17 +0000
commitc2ad6549fb337ce707e04aa441c9b492171a3b9d (patch)
tree611b43986a0c50d335ba69aafc8ace26cdcaffd3 /src/cnki.h
parentd2826fa075544ada1fb9f530a375ef85f58c8ea0 (diff)
downloadmelon-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.h5
1 files changed, 4 insertions, 1 deletions
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;