mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-23 06:24:44 -04:00
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:
1 parent
8c910a9e3b
commit
16e879ca51
3 files changed
+63
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user