Skip to content

Commit

Permalink
core: /template was renamed to /maketemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Nov 24, 2024
1 parent 9521ad0 commit 64d36b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/agstoolbox/core/ags/ags_local_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ def ags_editor_build(editor: LocalAgsEditor, project: GameProject, block: bool =

def ags_editor_template_build(editor: LocalAgsEditor, project: GameProject, block: bool = False) -> int:
project_path = get_absolute_path(project.path)
return run_exe_params(editor.path, block, ['/template', project_path])
return run_exe_params(editor.path, block, ['/maketemplate', project_path])
2 changes: 1 addition & 1 deletion src/agstoolbox/core/ags/ags_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def create_template_from_project(game_project: GameProject, template_name: str,
# v4.0.0.9, v4.0.0.10 ...
# and
# v3.6.2.1, v3.6.2.2 ...
# /template command is supported in the Editor
# /maketemplate command is supported in the Editor
def editor_supports_template_export(game_project: GameProject) -> bool:
ags3_first_sup: Version = version_str_to_version('3.6.2.1')
ags4_first_sup: Version = version_str_to_version('4.0.0.9')
Expand Down
2 changes: 1 addition & 1 deletion src/agstoolbox/core/cmdline/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def at_cmd_export_template_editor(game_project: GameProject, out_dir: str, templ

if not editor_supports_template_export(game_project):
print('ERROR: Project uses Editor "' + game_project.ags_editor_version.as_str +
'", which doesn\'t support /template command')
'", which doesn\'t support /maketemplate command')
return -1

res: int = base_meta_cmd_project(meta_args, False, ags_editor_template_build)
Expand Down

0 comments on commit 64d36b0

Please sign in to comment.