Fix macOS-specific paths added to list of module paths when custom environment variables are provided to OBS Studio at launch.
Motivation and Context
When custom module and module data paths are provided via environment variables, the module paths generated by current code will not be compatible with the plugin bundle structure used on macOS.
Using environment variables is a simple way to test plugins, as this allows OBS to discover them from alternative user-provided locations.
How Has This Been Tested?
Tested on macOS with plugins put into a custom location and provided the same directory as OBS_PLUGINS_PATH and OBS_PLUGINS_DATA_PATH via Xcode launch options.
Types of changes
Bug fix (non-breaking change which fixes an issue)
Description
Fix macOS-specific paths added to list of module paths when custom environment variables are provided to OBS Studio at launch.
Motivation and Context
When custom module and module data paths are provided via environment variables, the module paths generated by current code will not be compatible with the plugin bundle structure used on macOS.
Using environment variables is a simple way to test plugins, as this allows OBS to discover them from alternative user-provided locations.
How Has This Been Tested?
Tested on macOS with plugins put into a custom location and provided the same directory as
OBS_PLUGINS_PATH
andOBS_PLUGINS_DATA_PATH
via Xcode launch options.Types of changes
Checklist: