-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-devkitpro.cmd
More file actions
32 lines (28 loc) · 901 Bytes
/
Copy pathinstall-devkitpro.cmd
File metadata and controls
32 lines (28 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
REM GC-Chiptune : launcher for the devkitPPC + libogc2 installation.
REM
REM Exists for one reason only: the equivalent PowerShell command is too long to
REM paste without risking a line break. Here one short line is enough.
REM
REM Start-Process "<repo>\install-devkitpro.cmd" -Verb RunAs
REM
REM Or: right-click this file -> "Run as administrator".
setlocal
set "SCRIPT=%~dp0tools\install-devkitpro.ps1"
if not exist "%SCRIPT%" (
echo FAILED: script not found: "%SCRIPT%"
pause
exit /b 1
)
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT%"
set "RC=%ERRORLEVEL%"
echo.
echo ---------------------------------------------------------------
if "%RC%"=="0" (
echo Done. This window can be closed.
) else (
echo Finished with code %RC% - see the messages above.
)
echo ---------------------------------------------------------------
pause
exit /b %RC%