libobs/util: Add ConfigFile::OpenString()

For convenience
master
jp9000 2022-04-22 12:49:38 -07:00
parent a9ce118794
commit 493f6337f3
1 changed files with 6 additions and 0 deletions

View File

@ -97,6 +97,12 @@ public:
config = newConfig;
}
inline int OpenString(const char *str)
{
Close();
return config_open_string(&config, str);
}
inline int Open(const char *file, config_open_type openType)
{
Close();