mac-virtualcam: Update NotInstalled error text for macOS 15

This commit is contained in:
jcm
2024-07-20 18:35:09 -05:00
committed by Ryan Foster
parent 8b975c4563
commit ff2fa24dc2
2 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
Plugin_Name="macOS Virtual Webcam"
Error.SystemExtension.NotInstalled="The virtual camera is not installed.\n\nPlease allow OBS to install system software in System Settings → Privacy & Security → Security.\n\nYou may need to restart OBS if this message still appears afterward."
Error.SystemExtension.NotInstalled.MacOS15="The virtual camera is not installed.\n\nPlease allow OBS to install the camera system extension in System Settings → General → Login Items & Extensions → Camera Extensions.\n\nYou may need to restart OBS if this message still appears afterward."
Error.SystemExtension.CameraUnavailable="Could not find virtual camera.\n\nPlease try again."
Error.SystemExtension.CameraNotStarted="Unable to start virtual camera.\n\nPlease try again."
Error.SystemExtension.InstallationError="An error has occured while installing the virtual camera:"

View File

@@ -306,7 +306,12 @@ static bool virtualcam_output_start(void *data)
delegate.lastErrorMessage]
.UTF8String);
} else {
obs_output_set_last_error(vcam->output, obs_module_text("Error.SystemExtension.NotInstalled"));
if (@available(macOS 15.0, *)) {
obs_output_set_last_error(vcam->output,
obs_module_text("Error.SystemExtension.NotInstalled.MacOS15"));
} else {
obs_output_set_last_error(vcam->output, obs_module_text("Error.SystemExtension.NotInstalled"));
}
}
return false;