Esempio n. 1
0
bool obs_module_load(uint32_t libobs_ver)
{
	obs_register_service(&rtmp_common_service);
	obs_register_service(&rtmp_custom_service);

	UNUSED_PARAMETER(libobs_ver);
	return true;
}
bool obs_module_load(void)
{
	char *local_dir = obs_module_file("");
	char *cache_dir = obs_module_config_path("");

	if (cache_dir) {
		update_info = update_info_create(
				RTMP_SERVICES_LOG_STR,
				RTMP_SERVICES_VER_STR,
				RTMP_SERVICES_URL,
				local_dir,
				cache_dir,
				confirm_service_file, NULL);
	}

	bfree(local_dir);
	bfree(cache_dir);

	obs_register_service(&rtmp_common_service);
	obs_register_service(&rtmp_custom_service);
	return true;
}