From 9fb75fc4f24a0eb3a08d662636bd5e9e6b64ef67 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 28 Nov 2020 23:32:41 +0100 Subject: [PATCH] filter/dynamic-mask: Fix unicode support Related: #359 --- source/filters/filter-dynamic-mask.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/filters/filter-dynamic-mask.cpp b/source/filters/filter-dynamic-mask.cpp index eb76e14c..7bdaf464 100644 --- a/source/filters/filter-dynamic-mask.cpp +++ b/source/filters/filter-dynamic-mask.cpp @@ -59,14 +59,11 @@ dynamic_mask_instance::dynamic_mask_instance(obs_data_t* settings, obs_source_t* _final_rt = std::make_shared(GS_RGBA, GS_ZS_NONE); { - char* file = obs_module_file("effects/channel-mask.effect"); try { - _effect = gs::effect::create(file); + _effect = gs::effect::create(streamfx::data_file_path("effects/channel-mask.effect").u8string()); } catch (const std::exception& ex) { DLOG_ERROR("Loading channel mask effect failed with error(s):\n%s", ex.what()); } - assert(_effect != nullptr); - bfree(file); } update(settings);