Launcher: Allow for --nogui client launches (#4549)

This commit is contained in:
qwint
2025-02-10 13:34:27 -05:00
committed by GitHub
parent 910369a7f8
commit f520c1d9f2
6 changed files with 11 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ import Utils
import settings
from BaseClasses import Region, Location, Item, Tutorial, ItemClassification
from worlds.AutoWorld import World, WebWorld
from worlds.LauncherComponents import Component, components, Type, launch_subprocess
from worlds.LauncherComponents import Component, components, Type, launch as launch_component
from worlds.generic import Rules
from .Locations import location_pools, location_table
from .Mod import generate_mod
@@ -24,7 +24,7 @@ from .Technologies import base_tech_table, recipe_sources, base_technology_table
def launch_client():
from .Client import launch
launch_subprocess(launch, name="FactorioClient")
launch_component(launch, name="FactorioClient")
components.append(Component("Factorio Client", "FactorioClient", func=launch_client, component_type=Type.CLIENT))