| 148 | } |
| 149 | |
| 150 | bool SwitcherData::VersionChanged(obs_data_t *obj, std::string currentVersion) |
| 151 | { |
| 152 | if (!obs_data_has_user_value(obj, "version")) { |
| 153 | return false; |
| 154 | } |
| 155 | |
| 156 | std::string previousVersion = obs_data_get_string(obj, "version"); |
| 157 | return previousVersion != currentVersion; |
| 158 | } |
| 159 | |
| 160 | void SwitcherData::SaveVersion(obs_data_t *obj, |
| 161 | const std::string ¤tVersion) |