Subversion Repositories nw_plus

Rev

Rev 1 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 13
1
@echo off
1
@echo off
-
 
2
 
-
 
3
set mapster32dir=%~dp0
-
 
4
set nwdir=%~dp0
-
 
5
set nwhrpdir=%~dp0
-
 
6
 
2
:recheck
7
:recheck
3
if not exist mapster32.exe goto mapster32check
8
if not exist mapster32.exe goto mapster32check
4
:mapster32check_done
9
:mapster32check_done
-
 
10
set mapster32dir=%cd%
-
 
11
if "%debug%"=="1" echo DEBUG: Mapster32 Directory: "%mapster32dir%"
-
 
12
 
-
 
13
if exist nwinter_hrp set nwhrpdir=%cd%
-
 
14
:nwdircheck
-
 
15
cd nw_plus
-
 
16
set nwdir=%cd%
-
 
17
if exist nwinter_hrp set nwhrpdir=%cd%
-
 
18
if exist nw_plus goto nwdircheck
-
 
19
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%nwdir%".
-
 
20
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%nwhrpdir%".
-
 
21
 
-
 
22
cd "%mapster32dir%"
-
 
23
 
-
 
24
if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip
-
 
25
if exist hrp_update.zip set hrpu=-ghrp_update.zip
-
 
26
 
5
start mapster32 /jnw_plus -hnwinter.def -gNWINTER.GRP %*
27
set args=-j"%nwdir%" -j"%nwhrpdir%" -hnwinter.def -gnwinter.grp %hrp% %hrpu% %*
-
 
28
set exe=mapster32
-
 
29
if "%debug%"=="1" set exe=mapster32.debug
-
 
30
 
-
 
31
if exist %exe%.bat (
-
 
32
call %exe%.bat %args%
-
 
33
) else (
-
 
34
%exe%.exe %args%
-
 
35
)
-
 
36
 
6
goto end
37
goto end
7
 
38
 
8
:mapster32check
39
:mapster32check
9
if exist mapster32.bat goto mapster32check_done
40
if exist mapster32.bat goto mapster32check_done
10
if exist ..\mapster32.exe (
41
if exist ..\mapster32.exe (
11
cd ..
42
cd ..
12
goto recheck
43
goto recheck
13
)
44
)
14
if exist ..\..\mapster32.exe (
45
if exist ..\..\mapster32.exe (
15
cd ..\..
46
cd ..\..
16
goto recheck
47
goto recheck
17
)
48
)
18
if exist ..\..\..\mapster32.exe (
49
if exist ..\..\..\mapster32.exe (
19
cd ..\..\..
50
cd ..\..\..
20
goto recheck
51
goto recheck
21
)
52
)
22
if exist ..\mapster32.bat (
53
if exist ..\mapster32.bat (
23
cd ..
54
cd ..
24
goto mapster32check_done
55
goto mapster32check_done
25
)
56
)
26
if exist ..\..\mapster32.bat (
57
if exist ..\..\mapster32.bat (
27
cd ..\..
58
cd ..\..
28
goto mapster32check_done
59
goto mapster32check_done
29
)
60
)
30
if exist ..\..\..\mapster32.bat (
61
if exist ..\..\..\mapster32.bat (
31
cd ..\..\..
62
cd ..\..\..
32
goto mapster32check_done
63
goto mapster32check_done
33
)
64
)
34
echo Warning: You don't have Mapster32 in your directory.
65
echo Warning: You don't have Mapster32 in your directory.
35
goto mapster32check_done
66
goto mapster32check_done
36
 
67
 
37
:end
68
:end
-
 
69