mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-25 17:02:22 -04:00
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:
committed by
Ryan Foster
parent
bdf6dbe17c
commit
b2e51f63a2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user