From ec97e4deb34129a927a49d4a7dcda93abdf79167 Mon Sep 17 00:00:00 2001 From: Alan Mason <1923621+2Shirt@users.noreply.github.com> Date: Wed, 22 Nov 2017 13:51:13 -0800 Subject: [PATCH] ConEmu sections updated * Use a ConEmu variable instead of manually setting IN_CONEMU=True * USE_CONEMU renamed RELOAD_IN_CONEMU for clarity --- .bin/Scripts/Launch.cmd | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.bin/Scripts/Launch.cmd b/.bin/Scripts/Launch.cmd index 1565346e..5313eae9 100644 --- a/.bin/Scripts/Launch.cmd +++ b/.bin/Scripts/Launch.cmd @@ -66,17 +66,16 @@ if /i not "%L_NCMD%" == "True" (set "L_NCMD=") if /i not "%L_WAIT%" == "True" (set "L_WAIT=") :RelaunchInConEmu -set USE_CONEMU=True -if defined IN_CONEMU set "USE_CONEMU=" -if defined L_NCMD set "USE_CONEMU=" -if "%L_TYPE%" == "PSScript" set "USE_CONEMU=" -if "%L_TYPE%" == "PyScript" set "USE_CONEMU=" +set RELOAD_IN_CONEMU=True +if defined ConEmuBuild set "RELOAD_IN_CONEMU=" +if defined L_NCMD set "RELOAD_IN_CONEMU=" +if "%L_TYPE%" == "PSScript" set "RELOAD_IN_CONEMU=" +if "%L_TYPE%" == "PyScript" set "RELOAD_IN_CONEMU=" -if defined USE_CONEMU ( +if defined RELOAD_IN_CONEMU ( set "con_args=-new_console:n" rem If in DEBUG state then force ConEmu to stay open if defined DEBUG (set "con_args=!con_args! -new_console:c") - set IN_CONEMU=True start "" "%CON%" -run ""%~0" %*" !con_args! || goto ErrorUnknown exit /b 0 ) @@ -424,7 +423,7 @@ echo. DEBUG: %DEBUG% echo. PYTHON: %PYTHON% rem Pause script only if we want to catch the error AND only when using ConEmu if defined L_CHCK ( - if not defined L_NCMD ( + if defined ConEmuBuild ( echo Press any key to exit... pause>nul )