mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Utils: Add helper to get current profile file path
This commit is contained in:
parent
eb0743f683
commit
306844e42d
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user