X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=vhook%2Fmain.h;h=8bf7500fcd6c639d517d830af3cc2c758b609877;hb=cf4a4f46c3236579be317601390937f513c6125e;hp=9c200a376badd42c03ea869d5fd20346749d597b;hpb=162ccc31b71a41aeb6337d7132efdefcaf06d1aa;p=coroid%2Finqubus.git diff --git a/vhook/main.h b/vhook/main.h index 9c200a3..8bf7500 100644 --- a/vhook/main.h +++ b/vhook/main.h @@ -1,63 +1,63 @@ -#ifndef MAIN_H_ -#define MAIN_H_ -#include -#include -#include "nicodef.h" -#include "struct_define.h" -#include "chat/chat.h" -#include "chat/chat_slot.h" - -struct COMMDATA { - int enable; - CHAT chat; - CHAT_SLOT slot; - int opaque_comment; - DATA* common; -}; - -struct DATA{ - FILE* log; - TTF_Font* font[CMD_FONT_MAX]; - SDL_Surface* screen; -// /*‚»‚ꂼ‚ê‚̃Rƒƒ“ƒg‚ɉž‚¶‚½ƒf[ƒ^*/ -// //ƒ†[ƒUƒRƒƒ“ƒg -// int enable_user_comment; -// CHAT chat; -// CHAT_SLOT slot; -// //“ŠeŽÒƒRƒƒ“ƒg -// int enable_owner_comment; - COMMDATA user_comment; - COMMDATA owner_comment; - - //ˆê”Ê“I‚ȃf[ƒ^ - int shadow_kind; - int show_video; - int fontsize_fix; - int process_first_called; - int video_length; -}; - -typedef struct SETTING{ - const char* data_user_path; - const char* data_owner_path; - const char* font_path; - int video_length; - int font_index; - int user_slot_max; - int owner_slot_max; - int shadow_kind; - /*TRUE OR FALSE*/ - int enable_user_comment; - int enable_owner_comment; - int show_video; - int fontsize_fix; - int opaque_comment; -}SETTING; - -int init(FILE* log); -int initData(DATA* data,FILE* log,const SETTING* setting); -int main_process(DATA* data,SDL_Surface* surf,const int now_vpos); -int closeData(DATA* data); -int close(); - -#endif /*MAIN_H_*/ +#ifndef MAIN_H_ +#define MAIN_H_ +#include +#include +#include "nicodef.h" +#include "struct_define.h" +#include "chat/chat.h" +#include "chat/chat_slot.h" + +struct COMMDATA { + int enable; + CHAT chat; + CHAT_SLOT slot; + int opaque_comment; + DATA* common; +}; + +struct DATA{ + FILE* log; + TTF_Font* font[CMD_FONT_MAX]; + SDL_Surface* screen; +// /*それぞれのコメントに応じたデータ*/ +// //ユーザコメント +// int enable_user_comment; +// CHAT chat; +// CHAT_SLOT slot; +// //投稿者コメント +// int enable_owner_comment; + COMMDATA user_comment; + COMMDATA owner_comment; + + //一般的なデータ + int shadow_kind; + int show_video; + int fontsize_fix; + int process_first_called; + int video_length; +}; + +typedef struct SETTING{ + const char* data_user_path; + const char* data_owner_path; + const char* font_path; + int video_length; + int font_index; + int user_slot_max; + int owner_slot_max; + int shadow_kind; + /*TRUE OR FALSE*/ + int enable_user_comment; + int enable_owner_comment; + int show_video; + int fontsize_fix; + int opaque_comment; +}SETTING; + +int init(FILE* log); +int initData(DATA* data,FILE* log,const SETTING* setting); +int main_process(DATA* data,SDL_Surface* surf,const int now_vpos); +int closeData(DATA* data); +int close(); + +#endif /*MAIN_H_*/