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:
gxalpha 2023-01-16 17:12:02 +01:00 committed by Sebastian Beckmann
parent a1a98f9cfd
commit d405193aeb

View file

@ -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;