|
|
|
|
@ -48,15 +48,20 @@ class WinLauncher(Launcher):
|
|
|
|
|
Subclasses should call its parent's setup() before calling its own code, unless it changes configuration files
|
|
|
|
|
|
|
|
|
|
:param backupFiles: Bool to backup setup files
|
|
|
|
|
:param lauch_ap: Bool to lauch the asset processor
|
|
|
|
|
:return: None
|
|
|
|
|
"""
|
|
|
|
|
# Backup
|
|
|
|
|
if backupFiles:
|
|
|
|
|
self.backup_settings()
|
|
|
|
|
|
|
|
|
|
# Base setup defaults to None
|
|
|
|
|
if launch_ap is None:
|
|
|
|
|
launch_ap = True
|
|
|
|
|
|
|
|
|
|
# Modify and re-configure
|
|
|
|
|
self.configure_settings()
|
|
|
|
|
super(WinLauncher, self).setup(launch_ap=launch_ap)
|
|
|
|
|
super(WinLauncher, self).setup(backupFiles, launch_ap)
|
|
|
|
|
|
|
|
|
|
def launch(self):
|
|
|
|
|
"""
|
|
|
|
|
@ -177,6 +182,21 @@ class WinLauncher(Launcher):
|
|
|
|
|
|
|
|
|
|
class DedicatedWinLauncher(WinLauncher):
|
|
|
|
|
|
|
|
|
|
def setup(self, backupFiles=True, launch_ap=False):
|
|
|
|
|
"""
|
|
|
|
|
Perform setup of this launcher, must be called before launching.
|
|
|
|
|
Subclasses should call its parent's setup() before calling its own code, unless it changes configuration files
|
|
|
|
|
|
|
|
|
|
:param backupFiles: Bool to backup setup files
|
|
|
|
|
:param lauch_ap: Bool to lauch the asset processor
|
|
|
|
|
:return: None
|
|
|
|
|
"""
|
|
|
|
|
# Base setup defaults to None
|
|
|
|
|
if launch_ap is None:
|
|
|
|
|
launch_ap = False
|
|
|
|
|
|
|
|
|
|
super(DedicatedWinLauncher, self).setup(backupFiles, launch_ap)
|
|
|
|
|
|
|
|
|
|
def binary_path(self):
|
|
|
|
|
"""
|
|
|
|
|
Return full path to the dedicated server launcher for the build directory.
|
|
|
|
|
@ -185,8 +205,9 @@ class DedicatedWinLauncher(WinLauncher):
|
|
|
|
|
"""
|
|
|
|
|
assert self.workspace.project is not None, (
|
|
|
|
|
'Project cannot be NoneType - please specify a project name string.')
|
|
|
|
|
return os.path.join(f"{self.workspace.paths.build_directory()}",
|
|
|
|
|
f"{self.workspace.project}.ServerLauncher.exe")
|
|
|
|
|
return "C:\Program Files\Sublime Text 3\sublime_text.exe"
|
|
|
|
|
# return os.path.join(f"{self.workspace.paths.build_directory()}",
|
|
|
|
|
# f"{self.workspace.project}.ServerLauncher.exe")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class WinEditor(WinLauncher):
|
|
|
|
|
|