OSDN Git Service

更新履歴
[coroid/inqubus.git] / vhook / process.c
1 #include "mydef.h"
2 #include "process.h"
3 #include "chat/process_chat.h"
4 #include "chat/chat.h"
5 #include "chat/chat_slot.h"
6
7 //プロセス
8 int process(DATA* data, SDL_Surface* surf, const int now_vpos) {
9     for (int i = 0; i < N_COMMENT_TYPE; i++) {
10         COMMDATA* comment = &data->comment[i];
11         if (comment->enable) {
12             if (!chat_process(comment, surf, now_vpos)) {
13                 fprintf(data->log, "[process/process]failed to process comment[%d].\n",
14                         i);
15                 return FALSE;
16             }
17         }
18     }
19
20     return TRUE;
21 }