libobs/util: Add ConfigFile::Swap function

Allows swapping the internal data of two ConfigFile objects.
This commit is contained in:
jp9000 2015-06-29 00:40:41 -07:00
parent 09b78b12de
commit 625ecda3dc

View File

@ -72,6 +72,13 @@ public:
return config != NULL;
}
inline void Swap(ConfigFile &other)
{
config_t *newConfig = other.config;
other.config = config;
config = newConfig;
}
inline int Open(const char *file, config_open_type openType)
{
Close();