-
Notifications
You must be signed in to change notification settings - Fork 11
/
install.bat
59 lines (52 loc) · 2.16 KB
/
install.bat
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@echo off
rem This defines the installation directory, please change it:
set PSPSDKDIR=C:\pspsdk\psp\sdk
echo Files will be copied to the following directory:
echo %PSPSDKDIR%
echo Please verify that it's correct, or edit this batch file.
pause
echo
echo "---------------"
echo "OSLib installer"
echo "---------------"
echo "Creating directories...."
mkdir %PSPSDKDIR%\include\oslib
mkdir %PSPSDKDIR%\include\oslib\intraFont
mkdir %PSPSDKDIR%\include\oslib\libpspmath
mkdir %PSPSDKDIR%\include\oslib\adhoc
echo "Copying lib...."
xcopy Install\libosl.a %PSPSDKDIR%\lib\
IF ERRORLEVEL 1 GOTO ERROR
echo "Copying header files...."
xcopy Install\oslib\intraFont\intraFont.h %PSPSDKDIR%\include\oslib\intraFont\
xcopy Install\oslib\intraFont\libccc.h %PSPSDKDIR%\include\oslib\intraFont\
xcopy Install\oslib\libpspmath\pspmath.h %PSPSDKDIR%\include\oslib\libpspmath\
xcopy Install\oslib\adhoc\pspadhoc.h %PSPSDKDIR%\include\oslib\adhoc\
xcopy Install\oslib\oslmath.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\net.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\browser.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\audio.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\bgm.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\dialog.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\drawing.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\keys.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\map.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\messagebox.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\osk.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\saveload.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\oslib.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\text.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\usb.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\vfpu_ops.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\VirtualFile.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\vram_mgr.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\ccc.h %PSPSDKDIR%\include\oslib\
xcopy Install\oslib\sfont.h %PSPSDKDIR%\include\oslib\
IF ERRORLEVEL 1 GOTO ERROR
echo Installation completed successfully.
pause
exit
:ERROR
color c
echo Installation failed. Please verify the installation path!
pause