frontend: Add obs_frontend_is_safe_mode_enabled() API call

Adds a new API call to the frontend API to check if OBS was launched in
Safe Mode. This will primarily be used by core modules that need to know
if they should disable certain functionality when OBS is launched in
Safe Mode, e.g., frontend-tools disabling third party scripts, or
obs-websocket turning off its server by default in Safe Mode.
This commit is contained in:
FiniteSingularity
2026-09-24 11:50:52 -04:00
committed by Ryan Foster
parent bdf6dbe17c
commit b2e51f63a2
6 changed files with 24 additions and 0 deletions
+8
View File
@@ -989,3 +989,11 @@ Functions
:param duplicate: *true* for paste duplicate, *false* for paste reference
.. versionadded:: 32.2
---------------------------------------
.. function:: bool obs_frontend_is_safe_mode_enabled(void)
:return: *true* if OBS was launched in Safe Mode, *false* otherwise
.. versionadded:: 33.0