Factorio: revamp args parsing and passing (#5036)

This commit is contained in:
Fabian Dill
2025-06-03 13:49:44 +02:00
committed by GitHub
parent a76cec1539
commit b4f68bce76
2 changed files with 54 additions and 38 deletions

View File

@@ -22,9 +22,9 @@ from .Technologies import base_tech_table, recipe_sources, base_technology_table
from .settings import FactorioSettings
def launch_client():
def launch_client(*args: str):
from .Client import launch
launch_component(launch, name="FactorioClient")
launch_component(launch, name="Factorio Client", args=args)
components.append(Component("Factorio Client", func=launch_client, component_type=Type.CLIENT))