mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Fix some formatting issues and fix cmake file
This commit is contained in:
+2
-2
@@ -49,7 +49,7 @@ char *find_plugin(const char *plugin)
|
||||
char *find_libobs_data_file(const char *file)
|
||||
{
|
||||
struct dstr path;
|
||||
dstr_init_copy(&path, OBS_INSTALL_PREFIX OBS_DATA_PATH "/libobs/");
|
||||
dstr_init_copy(&path, OBS_INSTALL_DATA_PATH "/libobs/");
|
||||
dstr_cat(&path, file);
|
||||
return path.array;
|
||||
}
|
||||
@@ -57,7 +57,7 @@ char *find_libobs_data_file(const char *file)
|
||||
char *obs_find_plugin_file(const char *file)
|
||||
{
|
||||
struct dstr path;
|
||||
dstr_init_copy(&path, OBS_INSTALL_PREFIX OBS_DATA_PATH "/obs-plugins/");
|
||||
dstr_init_copy(&path, OBS_INSTALL_DATA_PATH "/obs-plugins/");
|
||||
dstr_cat(&path, file);
|
||||
return path.array;
|
||||
}
|
||||
|
||||
+5
-4
@@ -66,7 +66,8 @@ char *find_plugin(const char *plugin)
|
||||
|
||||
if (OBS_INSTALL_PREFIX [0] != 0)
|
||||
{
|
||||
if (check_lib_path(plugin, OBS_INSTALL_PREFIX "lib/obs-plugins/",
|
||||
if (check_lib_path(plugin,
|
||||
OBS_INSTALL_PREFIX "lib/obs-plugins/",
|
||||
&output))
|
||||
return output.array;
|
||||
}
|
||||
@@ -89,7 +90,7 @@ char *find_libobs_data_file(const char *file)
|
||||
|
||||
if (OBS_INSTALL_PREFIX [0] != 0)
|
||||
{
|
||||
if (check_path(file, OBS_INSTALL_PREFIX OBS_DATA_PATH "/libobs/",
|
||||
if (check_path(file, OBS_INSTALL_DATA_PATH "/libobs/",
|
||||
&output))
|
||||
return output.array;
|
||||
}
|
||||
@@ -112,8 +113,8 @@ char *obs_find_plugin_file(const char *file)
|
||||
|
||||
if (OBS_INSTALL_PREFIX [0] != 0)
|
||||
{
|
||||
if (check_path(file, OBS_INSTALL_PREFIX OBS_DATA_PATH "/obs-plugins/",
|
||||
&output))
|
||||
if (check_path(file, OBS_INSTALL_DATA_PATH "/obs-plugins/",
|
||||
&output))
|
||||
return output.array;
|
||||
}
|
||||
|
||||
|
||||
@@ -75,3 +75,5 @@ typedef int64_t off64_t;
|
||||
#ifndef OBS_INSTALL_PREFIX
|
||||
#define OBS_INSTALL_PREFIX ""
|
||||
#endif
|
||||
|
||||
#define OBS_INSTALL_DATA_PATH OBS_INSTALL_PREFIX OBS_DATA_PATH
|
||||
|
||||
Reference in New Issue
Block a user