Browse Source

Added changes to work with VSCode on windows

master
Robin Jones 5 years ago
parent
commit
a43d7b0f77
2 changed files with 15 additions and 11 deletions
  1. +1
    -0
      .gitignore
  2. +14
    -11
      build.cmd

+ 1
- 0
.gitignore View File

@ -16,3 +16,4 @@
*.VC.db*
*properties.json
/.vs
/.vscode

+ 14
- 11
build.cmd View File

@ -1,15 +1,18 @@
@echo off
set env="/usr/local/libdragon"
IF %1.==. GOTO default
bash --verbose -c "export N64_INST=%env%; make %1"
set "SystemPath=%SystemRoot%\\System32"
IF EXIST %WINDIR%\\sysnative\\reg.exe (
set "SystemPath=%SystemRoot%\Sysnative"
echo. "32-bit process..."
)
GOTO end
:default
bash --verbose -c "export N64_INST=%env%; make"
set env="/usr/local/libdragon"
:end
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"
)
pause
:pause

Loading…
Cancel
Save