This repository has been archived on 2020-03-22. You can view files and clone it, but cannot push or open issues/pull-requests.
ThatMinecraftLauncher/main.py

33 lines
1.2 KiB
Python

#!/usr/bin/python2
#proposed launcher startup sequence
#
# - look at command line arguments
# possible arguments:
# --ui:gui, --ui:cli-interactive, --ui:args-only, --ui:auto (default: auto)
# --update:if-available, --update:force, --update:noupdate (default: if-available)
# --launch, -l (default: not present)
# --silent, --quiet, -s, -q (default: only present in interactive cli mode)
#
# - decide whether to launch the GUI or not (either by command line argument
# or by determining if running from terminal)
#
# - if updating: install update and restart if in GUI mode or interactive CLI mode,
# update and exit in args-only mode
#
# - launch GUI or launch interactive CLI or follow instructions from the
# command line:
# If --ui:args-only is present, the default actions are update:if-available
# and exit without launching. If -l is present, the GUI or
# interactive CLI are only shown while updating and Minecraft will launch
# automatically.
#
# - load configuration
#
# - handle user actions (only in GUI or interactive mode, skipped with -l)
# - update and store configuration
# - GUI interaction
# - wait for launch or close actions
#
# - launch the game or exit