Exemplo n.º 1
0
	// ----------------------------------------------------------------------------
	// 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);
	}
Exemplo n.º 2
0
Arquivo: main.c Projeto: tatwood/taaui
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;
}
Exemplo n.º 3
0
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;
}