forked from KD87/xray-extensions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
xrGame.cmd
28 lines (21 loc) · 970 Bytes
/
xrGame.cmd
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
@echo off
cd xrGame\build
if exist mydll.obj del mydll.obj
if exist mydll.dll del mydll.dll
if exist mydll.exp del mydll.exp
if exist mydll.lib del mydll.lib
..\..\tools\ml /c /coff /DPZ_BUILD /Fo mydll.obj ..\mydll.asm
link /SUBSYSTEM:WINDOWS /DLL /OUT:mydll.dll /DEF:..\mydll.def mydll.obj
rem /SAFESEH:NO /MAP:map.txt
if exist mydll.obj del mydll.obj
if exist mydll.exp del mydll.exp
if exist mydll.lib del mydll.lib
if exist xrGame.dll del xrGame.dll
if exist corrections_list_tmp.txt del corrections_list_tmp.txt
..\..\tools\gpp.exe -o corrections_list_tmp.txt -DPZ +z --nostdinc corrections_list.txt
rem ..\..\tools\gpp.exe -o corrections_list_tmp.txt -DPZ +z -n +c ";" "\n" +c "\n;" "\n" --nostdinc corrections_list.txt
..\..\tools\bspatch.exe xrGame_orig.dll xrGame.dll xrGame.diff
..\..\tools\patcher.exe xrGame.dll mydll.dll corrections_list_tmp.txt
if exist mydll.dll del mydll.dll
if exist corrections_list_tmp.txt del corrections_list_tmp.txt
pause