Collapse time restriction to clock symbol if no restriction is set

This commit is contained in:
WarmUpTill
2021-06-01 21:10:50 +02:00
committed by WarmUpTill
parent 38161f63a3
commit 72f67705ed
5 changed files with 34 additions and 10 deletions

View File

@@ -218,13 +218,11 @@ std::string getSourceSettings(OBSWeakSource ws)
return settings;
}
std::filesystem::path getDataFilePath(const std::string &file)
std::string getDataFilePath(const std::string &file)
{
const char *root_path = obs_get_module_data_path(obs_current_module());
if (root_path) {
auto ret = std::filesystem::u8path(root_path);
ret.append(file.data());
return ret;
std::string root_path = obs_get_module_data_path(obs_current_module());
if (!root_path.empty()) {
return root_path + "/" + file;
}
return "";
}