Skip to content

Commit 380336f

Browse files
author
nitrocaster
committed
Fix xrbinup script, adjust directory structure for game binaries.
1 parent 319cd86 commit 380336f

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

doc/howto/build.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ Setup:
3636
- Install patch 1.6.02 (only for russian locale, worldwide release should have it included):
3737
http://cop.stalker-game.ru/?page=patches#2
3838
- Download and unpack archive with libraries
39-
- Create _bin_dbg, _bin_mix and _bin_rel folders in the game installation directory
40-
(Debug, Mixed and Release binaries)
41-
- Inside each of these folders create Win32 folder (hereinafter '_bin_xxx\Win32' is referred to as 'xbin')
39+
- Create _bin_dbg_Win32, _bin_mix_Win32 and _bin_rel_Win32 folders in the game installation directory
40+
(Debug, Mixed and Release binaries for 32-bit Windows). Hereinafter '_bin_xxx_Win32' is referred to as 'xbin'.
4241
- Copy following files from bin to xbin:
4342
- dbghelp.dll
4443
- eax.dll

xrbinup.cmd

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,33 @@ if not exist %2 (
2222
)
2323
set platform=%3
2424
if %platform%==Win32 (
25-
) else if %platform%==Win64 (
26-
) else (
27-
echo invalid platform: %platform%
28-
goto ret
25+
goto platform_ok
26+
)
27+
if %platform%==Win64 (
28+
goto platform_ok
2929
)
30+
echo invalid platform: %platform%
31+
goto ret
3032

33+
:platform_ok
3134
set cfg=%4
3235
if %cfg%==Debug (
3336
set dst=%1\_bin_dbg
34-
) else if %cfg%==Mixed (
37+
goto cfg_ok
38+
)
39+
if %cfg%==Mixed (
3540
set dst=%1\_bin_mix
36-
) else if %cfg%==Release (
41+
goto cfg_ok
42+
)
43+
if %cfg%==Release (
3744
set dst=%1\_bin_rel
38-
) else (
39-
echo invalid configuration: %cfg%
40-
goto ret
45+
goto cfg_ok
4146
)
42-
set dst=%dst%\%platform%
47+
echo invalid configuration: %cfg%
48+
goto ret
49+
50+
:cfg_ok
51+
set dst=%dst%_%platform%
4352
set src=%2\bin\%platform%\%cfg%
4453

4554
set cp_tool=cp

0 commit comments

Comments
 (0)