From 3311a7105e2df15825ed9a5915543257f18eacb8 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Fri, 8 Dec 2023 17:25:58 +0100 Subject: [PATCH] libobs: Mark data path modification functions as deprecated --- libobs/obs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libobs/obs.c b/libobs/obs.c index 51fa5dc4c..33672021d 100644 --- a/libobs/obs.c +++ b/libobs/obs.c @@ -1273,13 +1273,15 @@ char *obs_find_data_file(const char *file) return NULL; } -void obs_add_data_path(const char *path) +// TODO: Remove after deprecation grace period +OBS_DEPRECATED void obs_add_data_path(const char *path) { struct dstr *new_path = da_push_back_new(core_module_paths); dstr_init_copy(new_path, path); } -bool obs_remove_data_path(const char *path) +// TODO: Remove after deprecation grace period +OBS_DEPRECATED bool obs_remove_data_path(const char *path) { for (size_t i = 0; i < core_module_paths.num; ++i) { int result = dstr_cmp(&core_module_paths.array[i], path);