OSDN Git Service

f9d260e29f3faefe32e708525b33c6a77ce196aa
[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         //ユーザコメント
10         if(data->user_comment.enable){
11                 if(!chat_process(&data->user_comment,surf,now_vpos)){
12                         fputs("[process/process]failed to process comment.\n",data->log);
13                         return FALSE;
14                 }
15         }
16         //オーナコメント
17         if(data->owner_comment.enable){
18                 if(!chat_process(&data->owner_comment,surf,now_vpos)){
19                         fputs("[process/process]failed to process comment.\n",data->log);
20                         return FALSE;
21                 }
22         }
23         return TRUE;
24 }
25