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 committed 2018-07-18 10:39:39 -07:00
1 parent 8c910a9e3b
commit 16e879ca51
3 files changed
+63

No files matched your search

+2
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;