mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 18:41:14 +00:00
filter/transform: Swap parameter names in migration code
This commit is contained in:
parent
5d89b0d8b1
commit
50a23799b0
1 changed files with 7 additions and 7 deletions
|
@ -176,14 +176,14 @@ void transform_instance::migrate(obs_data_t* settings, uint64_t version)
|
|||
// Only test for A.B.C in A.B.C.D
|
||||
version = version & STREAMFX_MASK_UPDATE;
|
||||
|
||||
#define COPY_UNSET(TYPE, OLDNAME, NEWNAME) \
|
||||
if (obs_data_has_user_value(settings, OLDNAME)) { \
|
||||
obs_data_set_##TYPE(settings, NEWNAME, obs_data_get_##TYPE(settings, OLDNAME)); \
|
||||
obs_data_unset_user_value(settings, OLDNAME); \
|
||||
#define COPY_UNSET(TYPE, NAME, OLDNAME) \
|
||||
if (obs_data_has_user_value(settings, OLDNAME)) { \
|
||||
obs_data_set_##TYPE(settings, NAME, obs_data_get_##TYPE(settings, OLDNAME)); \
|
||||
obs_data_unset_user_value(settings, OLDNAME); \
|
||||
}
|
||||
#define COPY_IGNORE(TYPE, OLDNAME, NEWNAME) \
|
||||
if (obs_data_has_user_value(settings, OLDNAME)) { \
|
||||
obs_data_set_##TYPE(settings, NEWNAME, obs_data_get_##TYPE(settings, OLDNAME)); \
|
||||
#define COPY_IGNORE(TYPE, NAME, OLDNAME) \
|
||||
if (obs_data_has_user_value(settings, OLDNAME)) { \
|
||||
obs_data_set_##TYPE(settings, NAME, obs_data_get_##TYPE(settings, OLDNAME)); \
|
||||
}
|
||||
#define SET_IF_UNSET(TYPE, NAME, value) \
|
||||
if (!obs_data_has_user_value(settings, NAME)) { \
|
||||
|
|
Loading…
Reference in a new issue