libobs/UI: Allow Access To argc/argv

This paves the way for plugins to have access to the argc/argv used
when spawning OBS. Notably, this will allow a patch to obs-browser that
passes through command line arguments on macOS to CEF.
This commit is contained in:
David Cooper 2018-07-03 14:31:27 -07:00
commit 16e879ca51
3 changed files with 63 additions and 0 deletions

View file

@ -1981,6 +1981,8 @@ int main(int argc, char *argv[])
move_to_xdg();
#endif
obs_set_cmdline_args(argc, argv);
for (int i = 1; i < argc; i++) {
if (arg_is(argv[i], "--portable", "-p")) {
portable_mode = true;