Skip to content

Commit

Permalink
Fix xrbinup script, adjust directory structure for game binaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 23, 2015
1 parent 319cd86 commit 380336f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
5 changes: 2 additions & 3 deletions doc/howto/build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ Setup:
- Install patch 1.6.02 (only for russian locale, worldwide release should have it included):
http://cop.stalker-game.ru/?page=patches#2
- Download and unpack archive with libraries
- Create _bin_dbg, _bin_mix and _bin_rel folders in the game installation directory
(Debug, Mixed and Release binaries)
- Inside each of these folders create Win32 folder (hereinafter '_bin_xxx\Win32' is referred to as 'xbin')
- Create _bin_dbg_Win32, _bin_mix_Win32 and _bin_rel_Win32 folders in the game installation directory
(Debug, Mixed and Release binaries for 32-bit Windows). Hereinafter '_bin_xxx_Win32' is referred to as 'xbin'.
- Copy following files from bin to xbin:
- dbghelp.dll
- eax.dll
Expand Down
29 changes: 19 additions & 10 deletions xrbinup.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,33 @@ if not exist %2 (
)
set platform=%3
if %platform%==Win32 (
) else if %platform%==Win64 (
) else (
echo invalid platform: %platform%
goto ret
goto platform_ok
)
if %platform%==Win64 (
goto platform_ok
)
echo invalid platform: %platform%
goto ret

:platform_ok
set cfg=%4
if %cfg%==Debug (
set dst=%1\_bin_dbg
) else if %cfg%==Mixed (
goto cfg_ok
)
if %cfg%==Mixed (
set dst=%1\_bin_mix
) else if %cfg%==Release (
goto cfg_ok
)
if %cfg%==Release (
set dst=%1\_bin_rel
) else (
echo invalid configuration: %cfg%
goto ret
goto cfg_ok
)
set dst=%dst%\%platform%
echo invalid configuration: %cfg%
goto ret

:cfg_ok
set dst=%dst%_%platform%
set src=%2\bin\%platform%\%cfg%

set cp_tool=cp
Expand Down

0 comments on commit 380336f

Please sign in to comment.