From 96d11d0e5bd23b6a7128f48dfc6233132c6166c6 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Tue, 19 Sep 2017 00:53:41 +0900 Subject: fmdsp-pacc: add comment display --- fmdriver/fmdriver.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'fmdriver/fmdriver.h') diff --git a/fmdriver/fmdriver.h b/fmdriver/fmdriver.h index b31c31e..ba36c3e 100644 --- a/fmdriver/fmdriver.h +++ b/fmdriver/fmdriver.h @@ -89,9 +89,23 @@ struct fmdriver_work { const struct ppz8_functbl *ppz8_functbl; struct ppz8 *ppz8; + // if false, 3 line comment + // if true, PMD memo mode + bool comment_mode_pmd; + // CP932 encoded - //const char *title; - char comment[3][FMDRIVER_TITLE_BUFLEN]; + // may contain ANSI escape sequences + // if !comment_mode_pmd: + // three lines, 0 <= line < 3 + // if comment_mode_pmd: + // line 0: #Title + // line 1: #Composer + // line 2: #Arranger + // line 3: #Memo 1st line + // : + // line n: NULL + const char *(*get_comment)(struct fmdriver_work *work, int line); + // only single-byte uppercase cp932 char filename[FMDRIVER_TITLE_BUFLEN]; // always 8 characters and pad with ' ' -- cgit v1.2.3