From a43d7b0f774626f8e2703e267a552817a256c2d0 Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Tue, 13 Dec 2016 15:37:40 +0000 Subject: [PATCH] Added changes to work with VSCode on windows --- .gitignore | 1 + build.cmd | 25 ++++++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 727347b..209a154 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ *.VC.db* *properties.json /.vs +/.vscode diff --git a/build.cmd b/build.cmd index 83d08bf..e627d01 100644 --- a/build.cmd +++ b/build.cmd @@ -1,15 +1,18 @@ @echo off +set "SystemPath=%SystemRoot%\\System32" +IF EXIST %WINDIR%\\sysnative\\reg.exe ( + set "SystemPath=%SystemRoot%\Sysnative" + echo. "32-bit process..." +) + set env="/usr/local/libdragon" -IF %1.==. GOTO default +IF %1.==. ( + echo. "no parameter" + %SystemPath%\\bash --verbose -c "export N64_INST=%env%; make" +) ELSE ( + echo. "parameter: %1" + %SystemPath%\\bash --verbose -c "export N64_INST=%env%; make %1" +) -bash --verbose -c "export N64_INST=%env%; make %1" - -GOTO end - -:default -bash --verbose -c "export N64_INST=%env%; make" - -:end - -pause \ No newline at end of file +:pause \ No newline at end of file