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,12 +831,16 @@ if not "!other!"=="" (
) )
if "!run!"=="yes" ( if "!run!"=="yes" (
set exename=hello.exe if "!rc!"=="1" (
if not "!other!"=="" ( echo build failed. skipping run!
for /f "tokens=*" %%a in ("!other!") do set exename=%%~na.exe ) else (
set exename=hello.exe
if not "!other!"=="" (
for /f "tokens=*" %%a in ("!other!") do set exename=%%~na.exe
)
echo run !exename! !run_args!
!exename! !run_args! || set rc=1
) )
echo run !exename! !run_args!
!exename! !run_args! || set rc=1
) )
rem PAUSE only if double-clicked from Windows explorer rem PAUSE only if double-clicked from Windows explorer

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),