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:
parent
8c910a9e3b
commit
16e879ca51
3 changed files with 63 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue