MCPcopy Create free account
hub / github.com/Vhonowslend/StreamFX-Public / data_file_path

Method data_file_path

source/plugin.cpp:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135std::filesystem::path streamfx::data_file_path(std::string_view file)
136{
137 const char* root_path = obs_get_module_data_path(obs_current_module());
138 if (root_path) {
139 auto ret = std::filesystem::u8path(root_path);
140 ret.append(file.data());
141 return ret;
142 } else {
143 throw std::runtime_error("obs_get_module_data_path returned nullptr");
144 }
145}
146
147std::filesystem::path streamfx::config_file_path(std::string_view file)
148{

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected