Skip to content

libobs, frontend: Add functions to save json with defaults#13397

Open
cg2121 wants to merge 2 commits intoobsproject:masterfrom
cg2121:save-default-data
Open

libobs, frontend: Add functions to save json with defaults#13397
cg2121 wants to merge 2 commits intoobsproject:masterfrom
cg2121:save-default-data

Conversation

@cg2121
Copy link
Copy Markdown
Contributor

@cg2121 cg2121 commented May 4, 2026

Description

This saves the default OBS data. With this, we don't have to create new versions of objects when we want to change the default settings.

Motivation and Context

Continuation of #10693

How Has This Been Tested?

Created a new source, made sure I didn't change any settings, and made sure the settings were saved to the json file.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have read the contributing document.
  • My code has been run through clang-format.
  • My code follows the project's style guidelines
  • My code is not on the master branch.
  • My code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@cg2121 cg2121 added the kind/bug Categorizes issue or PR as related to a bug. label May 4, 2026
@cg2121 cg2121 requested a review from derrod May 4, 2026 18:04
@cg2121 cg2121 force-pushed the save-default-data branch from 2b4f880 to 42b1ffc Compare May 4, 2026 19:17
@cg2121 cg2121 added kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. and removed kind/bug Categorizes issue or PR as related to a bug. labels May 4, 2026
@cg2121
Copy link
Copy Markdown
Contributor Author

cg2121 commented May 4, 2026

I've noticed this has already been added with #10693, it was just not used when saving OBS. I've updated this PR to add save json with default functions.

There were already functions to get json with default, but there
were no save functions.
@cg2121 cg2121 force-pushed the save-default-data branch from 42b1ffc to 98b2ce6 Compare May 4, 2026 19:21
@cg2121 cg2121 changed the title libobs: Save default OBS data libobs, frontend: Add functions to save json with defaults May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant