回文章列表
作者hrs113355.bbs@XDBBS.twbbs.org (最愛笨小史的分子) 看板: itoc
標題[功能] 支援pmore2007互動式動畫
時間叉滴小站 (2008/04/08 Tue 17:09:31)
其實我是要考試的人了  還是手癢把pmore改成可以在M3上執行XD

要感謝piaip長輩的原生pmore和幫助,開始改的時候不太懂問了他一些問題

piaip長輩有可能會把M3支援寫進current pmore

有興趣的朋友可以到貴站玩玩,貴站已經實裝並可以正常執行(maple-xdbbs r153)


: include/global.h

+  #define KEY_F1          0x0301
+  #define KEY_F2          0x0302
+  #define KEY_F3          0x0303
+  #define KEY_F4          0x0304
+  #define KEY_F5          0x0305
+  #define KEY_F6          0x0306
+  #define KEY_F7          0x0307
+  #define KEY_F8          0x0308
+  #define KEY_F9          0x0309
+  #define KEY_F10         0x030A
+  #define KEY_F11         0x030B
+  #define KEY_F12         0x030C
+  #define KEY_STAB        0x0105  /* shift-tab */

+  #ifdef  M3_USE_PMORE
+  #define MORE_PICTURE    -1
+  #define MORE_ARTICLE1
+  #define MORE_DATA2
+  #endif

: include/config.h

+  #define M3_USE_PMORE /* hrs.080408: 使用pmore */

: maple/more.c:more()

  if (!(fimage = f_img(fpath, &fsize)))
    return -1;

+  #ifdef M3_USE_PMORE
     return pmore(fpath, (footer == NULL ? MORE_DATA : (footer == -1 ?
     MORE_PICTURE : MORE_ARTICLE)));
+  #endif

  foff = fimage;
  fend = fimage + fsize;

: maple/board.c:XoPost()

  /* itoc.011113: 第一次進板一定要看進板畫面,第二次以後則取決 ufo 設定 */
  if (!(bits & BRD_V_BIT) || (cuser.ufo & UFO_BRDNOTE))
  {
    brd_bits[bno] = bits | BRD_V_BIT;
    brd_fpath(fpath, currboard, fn_note);
-   more(fpath, (char *) -1);
+   if (more(fpath, (char *) -1) != -1)
+   vmsg(NULL);
  }

: maple/pmore.c  (重頭戲:P)

下載  http://xdbbs.twbbs.org/svn/maple-xdbbs/src/maple/pmore.c

: maple/Makefile

 SRC = ...
+ pmore.c

 OBJ = ...
+ pmore.o


--

telnet://xdbbs.twbbs.org ->  [叉滴小站]

--
 ※ 發信站: 叉滴小站(XDBBS.twbbs.org)
 ◆ 作者: hrs113355
 ◆ 故鄉: 203.64.26.28 (建電副站)
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻