From a4f920ae86ae11c9340de69a1d34dc7737704523 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 29 Apr 2021 23:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A7=E5=88=B6=E5=8F=B0?= =?UTF-8?q?=E4=B8=80=E4=BA=9BAliases=E4=B8=8D=E8=83=BD=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_console.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/parts/scenes/app_console.lua b/parts/scenes/app_console.lua index 235976df..29f43554 100644 --- a/parts/scenes/app_console.lua +++ b/parts/scenes/app_console.lua @@ -94,12 +94,12 @@ do--commands.help(arg) details={ "Attempt to delete a file (in saving directory)", "", - "Aliases: rm delete remove", + "Aliases: rm", "", "Usage: del [filename|dirname]", "Usage: del -s [dirname]", }, - },rm="del",delete="del",remove="del", + },rm="del", cls={ description="Clear the log output.", details={ @@ -267,7 +267,8 @@ do--commands.help(arg) local cmd=command_help_list[i] log{C.Z,cmd,C.H," "..command_help_messages[cmd].description} end -end + end + commands["?"]=commands.help end function commands.error(mes)error(mes)end function commands.cls()outputBox:clear()end @@ -327,7 +328,7 @@ do--function commands.tree() end end end -do +do--function commands.del(name) local function delFile(name) if love.filesystem.remove(name)then log{C.Y,("Deleted: '%s'"):format(name)} @@ -397,6 +398,7 @@ do log{C.aqua,"Usage: del -s [dirname]"} end end + commands.rm=commands.del end commands.exit=backScene commands.quit=backScene @@ -482,6 +484,7 @@ function commands.playbgm(bgm) log{C.aqua,"Usage: playbgm [bgmName]"} end end +commands.music=commands.playbgm function commands.stopbgm() BGM.stop() end