mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00:00
UI: Only set portable mode variable if supported
Previously, all the functions of portable mode wouldn't work if compiled without it, but the log still show it as enabled if the argument was set. This could lead to confusion. Additionally, we don't even show the option in the help string (--help), so it should just be a no-op.
This commit is contained in:
parent
a1a98f9cfd
commit
d405193aeb
|
@ -3222,12 +3222,14 @@ int main(int argc, char *argv[])
|
|||
obs_set_cmdline_args(argc, argv);
|
||||
|
||||
for (int i = 1; i < argc; i++) {
|
||||
if (arg_is(argv[i], "--portable", "-p")) {
|
||||
portable_mode = true;
|
||||
|
||||
} else if (arg_is(argv[i], "--multi", "-m")) {
|
||||
if (arg_is(argv[i], "--multi", "-m")) {
|
||||
multi = true;
|
||||
|
||||
#if ALLOW_PORTABLE_MODE
|
||||
} else if (arg_is(argv[i], "--portable", "-p")) {
|
||||
portable_mode = true;
|
||||
|
||||
#endif
|
||||
} else if (arg_is(argv[i], "--verbose", nullptr)) {
|
||||
log_verbose = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue