// ---------------------------------------------------------------------------- // plugin_exec // ---------------------------------------------------------------------------- int plugin_exec(PluginParam *par) { int fd_fb = -1; int fd_rc = -1; for( ; par; par=par->next) { if(strcmp(par->id, P_ID_FBUFFER) == 0) fd_fb = _atoi(par->val); else if(strcmp(par->id, P_ID_RCINPUT) == 0) fd_rc = _atoi(par->val); else if(strcmp(par->id, P_ID_NOPIG) == 0) fx2_use_pig = !_atoi(par->val); } return main_exec(fd_fb, fd_rc, -1, NULL); }
int main(int argc, const char** argv) { main_win mwin; int err; err = main_init_window(&mwin); if(err == 0) { main_exec(&mwin); } main_close_window(&mwin); #if defined(_DEBUG) && defined(_MSC_FULL_VER) _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE); _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDOUT); _CrtCheckMemory(); _CrtDumpMemoryLeaks(); #endif return EXIT_SUCCESS; }
int main(int argc, char* argv[]) { main_win mwin; char rootdir[taa_PATH_SIZE]; int err; taa_path_get_dir(argv[0], rootdir, sizeof(rootdir)); err = main_init_window(&mwin); if(err == 0) { main_exec(&mwin, rootdir); } main_close_window(&mwin); #if defined(_DEBUG) && defined(_MSC_FULL_VER) _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE); _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDOUT); _CrtCheckMemory(); _CrtDumpMemoryLeaks(); #endif return EXIT_SUCCESS; }