mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-01 00:27:20 -05:00
fix: name --offline when given, keep page budget
--offline given with the variable set is named as the option, and the runs the screen starts get it only when the user gave it. The first install page stays under its 400 words, the 3.8 runs skip only the pack test that needs generate_pack.
This commit is contained in:
1 parent
73f8e48d41
commit
a4af2ffda4
8 files changed
+42
-34
No files matched your search
+6
-3
@@ -10274,9 +10274,9 @@ def main() -> None:
|
||||
):
|
||||
if given:
|
||||
parser.error(reason)
|
||||
if args.offline and not offline_requested():
|
||||
if args.offline:
|
||||
# The runs the full-screen interface starts read it from here, and
|
||||
# the words name the option, not a variable nobody set.
|
||||
# the words name the option given.
|
||||
os.environ[OFFLINE_VARIABLE] = OFFLINE_FLAG_VALUE
|
||||
if offline_requested() and (args.target or args.list_targets):
|
||||
parser.error("--target and --list-targets read a core list from the network, "
|
||||
@@ -13246,7 +13246,10 @@ def tui_flags(state: TuiState) -> list[tuple[str, str | None]]:
|
||||
if state.jobs != 8:
|
||||
flags.append(("--jobs", str(state.jobs)))
|
||||
flags += [("--from", str(folder)) for folder in state.from_folders]
|
||||
if offline_requested() and not any(flag == "--offline" for flag, _v in flags):
|
||||
if (os.environ.get(OFFLINE_VARIABLE) == OFFLINE_FLAG_VALUE
|
||||
and not any(flag == "--offline" for flag, _v in flags)):
|
||||
# Given as --offline: said so in the command. Set as the variable,
|
||||
# the runs inherit it and the words name it.
|
||||
flags.append(("--offline", None))
|
||||
return flags
|
||||
|
||||
|
||||
Reference in new issue
Block a user