improve run cmd

main
Dominik Madarász 2023-10-29 12:37:09 +01:00
parent 6998920b35
commit 0a009e4ef9
2 changed files with 9 additions and 6 deletions

View File

@ -831,6 +831,9 @@ if not "!other!"=="" (
) )
if "!run!"=="yes" ( if "!run!"=="yes" (
if "!rc!"=="1" (
echo build failed. skipping run!
) else (
set exename=hello.exe set exename=hello.exe
if not "!other!"=="" ( if not "!other!"=="" (
for /f "tokens=*" %%a in ("!other!") do set exename=%%~na.exe for /f "tokens=*" %%a in ("!other!") do set exename=%%~na.exe
@ -838,6 +841,7 @@ if "!run!"=="yes" (
echo run !exename! !run_args! echo run !exename! !run_args!
!exename! !run_args! || set rc=1 !exename! !run_args! || set rc=1
) )
)
rem PAUSE only if double-clicked from Windows explorer rem PAUSE only if double-clicked from Windows explorer
(((echo.%cmdcmdline%)|%WINDIR%\system32\find.exe /I "%~0")>nul)&&pause (((echo.%cmdcmdline%)|%WINDIR%\system32\find.exe /I "%~0")>nul)&&pause

View File

@ -12,7 +12,6 @@ int main() {
window_title(__FILE__); window_title(__FILE__);
camera_t cam = camera(); camera_t cam = camera();
vec3 route[] = { vec3 route[] = {
vec3(0.0f, 0.0f, 5.0f), vec3(0.0f, 0.0f, 5.0f),
vec3(0.0f, 0.0f, 10.0f), vec3(0.0f, 0.0f, 10.0f),