libobs/util: Add ConfigFile::Swap function
Allows swapping the internal data of two ConfigFile objects.
This commit is contained in:
parent
09b78b12de
commit
625ecda3dc
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user