Utils: Add helper to get current profile file path

This commit is contained in:
tt2468 2021-08-26 18:41:53 -07:00
parent eb0743f683
commit 306844e42d
2 changed files with 9 additions and 0 deletions

View File

@ -55,6 +55,14 @@ std::string Utils::Obs::StringHelper::GetCurrentProfile()
return ret;
}
std::string Utils::Obs::StringHelper::GetCurrentProfilePath()
{
char *profilePath = obs_frontend_get_current_profile_path();
std::string ret = profilePath;
bfree(profilePath);
return ret;
}
std::string Utils::Obs::StringHelper::GetSourceTypeString(obs_source_t *source)
{
obs_source_type sourceType = obs_source_get_type(source);

View File

@ -34,6 +34,7 @@ namespace Utils {
std::string GetObsVersionString();
std::string GetCurrentSceneCollection();
std::string GetCurrentProfile();
std::string GetCurrentProfilePath();
std::string GetSourceTypeString(obs_source_t *source);
std::string GetInputMonitorTypeString(obs_source_t *input);
std::string GetMediaInputStateString(obs_source_t *input);