LADX: move client out of root (#4226)
* init * Revert "init" This reverts commit bba6b7a306b512dc77bc04acb166f83134827f98. * put it back but clean * pass args * windows stuff * delete old exe this seems like it? * use marin icon in launcher * use LauncherComponents.launch
This commit is contained in:
@@ -9,6 +9,7 @@ import settings
|
||||
from BaseClasses import CollectionState, Entrance, Item, ItemClassification, Location, Tutorial
|
||||
from Fill import fill_restrictive
|
||||
from worlds.AutoWorld import WebWorld, World
|
||||
from worlds.LauncherComponents import Component, components, SuffixIdentifier, Type, launch, icon_paths
|
||||
from .Common import *
|
||||
from . import ItemIconGuessing
|
||||
from .Items import (DungeonItemData, DungeonItemType, ItemName, LinksAwakeningItem, TradeItemData,
|
||||
@@ -29,6 +30,19 @@ from .Rom import LADXProcedurePatch, write_patch_data
|
||||
DEVELOPER_MODE = False
|
||||
|
||||
|
||||
def launch_client(*args):
|
||||
from .LinksAwakeningClient import launch as ladx_launch
|
||||
launch(ladx_launch, name=f"{LINKS_AWAKENING} Client", args=args)
|
||||
|
||||
components.append(Component(f"{LINKS_AWAKENING} Client",
|
||||
func=launch_client,
|
||||
component_type=Type.CLIENT,
|
||||
icon=LINKS_AWAKENING,
|
||||
file_identifier=SuffixIdentifier('.apladx')))
|
||||
|
||||
icon_paths[LINKS_AWAKENING] = "ap:worlds.ladx/assets/MarinV-3_small.png"
|
||||
|
||||
|
||||
class LinksAwakeningSettings(settings.Group):
|
||||
class RomFile(settings.UserFilePath):
|
||||
"""File name of the Link's Awakening DX rom"""
|
||||
|
||||
Reference in New Issue
Block a user