libobs: Fix source type versioning system
(This also modifies image-source, obs-text, text-freetype2, and UI) This improves source definition versioning. To do this, it now stores two identifier names. One "unversioned" which is the original name, and one "versioned" with the version number appended. This fixes both backward compatibility with older OBS versions, and fixes the inability to use "add existing" in OBS itself on sources created from older version definitions.
This commit is contained in:
@@ -1098,7 +1098,7 @@ bool obs_module_load(void)
|
||||
};
|
||||
|
||||
obs_source_info si_v2 = si;
|
||||
si_v2.id = "text_gdiplus_v2";
|
||||
si_v2.version = 2;
|
||||
si_v2.output_flags &= ~OBS_SOURCE_CAP_OBSOLETE;
|
||||
si_v2.get_defaults = [](obs_data_t *settings) {
|
||||
defaults(settings, 2);
|
||||
|
Reference in New Issue
Block a user