anchor.diff:  	:: cmake vars to add to command line
   	set CMAKE_DB_VARS=-D SQLITE3_INCLUDE_DIR=!DB_PATH! -D SQLITE3_LIBRARY=!DB_PATH!!DB_LIB!.lib -D WITH_SQLITE3=true
   )
  -
  +:: ODBC
  +if [%CHOICE_DBTYPE%]==[5] (
  +	echo.
  +	@call module\dbchoice.inc.bat ODBC module\include\odbc\
  +	:: set user's choice as version
  +	set DB_VERSION=!CHOICE_DB!
  +	:: path to directory with db headers and libs
  +	set DB_PATH=module\include\odbc\!DB_VERSION!\
  +	:: lib filename without extension (.lib, ODBC does not need a dll, because it already exists in the system32)
  +	set DB_LIB=odbc32
  +
  +	:: cmake vars to add to command line
  +	set CMAKE_DB_VARS=-D ODBC_INCLUDE_DIR=!DB_PATH! -D ODBC_LIBRARY=!DB_PATH!!DB_LIB!.lib -D WITH_ODBC=true
  +)
   
   echo.
   echo _____________________________[ S T A R T ]______________________________________
   
   :: ----------- DOWNLOAD ------------
  -if [%LOG%]==[true] set svn_log=^>svn.log
  -@mkdir %PVPGN_SOURCE%
  +if [%LOG%]==[true] set _svn_log=^>svn.log
  +mkdir %PVPGN_SOURCE%
   
   :: download latest pvpgn from the svn
  -if [%CHOICE_SVN%]==[y] module\tortoisesvn\svn.exe checkout %PVPGN_SVN% %PVPGN_SOURCE% %svn_log%
  +if [%CHOICE_SVN%]==[y] module\tortoisesvn\svn.exe checkout %PVPGN_SVN% %PVPGN_SOURCE% %_svn_log%
   
   
   :: ----------- MAKE ------------
   echo.
   echo ______________________[ C M A K E  C O N F I G U R E ]__________________________
  -if [%LOG%]==[true] set cmake_log= ^>cmake.log
  -@mkdir %PVPGN_BUILD%
  +if [%LOG%]==[true] set _cmake_log= ^>cmake.log
  +mkdir %PVPGN_BUILD%
   
   :: use win32 configs
   @call :backup_conf
   
   :: delete cmake cache
  -@del %PVPGN_BUILD%CMakeCache.txt
  -
  -if [%CHOICE_INTERFACE%]==[1] ( set with_gui=false ) else ( set with_gui=true )
  +del %PVPGN_BUILD%CMakeCache.txt
  +
  +if [%CHOICE_INTERFACE%]==[1] ( set _with_gui=false) else ( set _with_gui=true)
   
   :: configure and generate solution
  -module\cmake\bin\cmake.exe -Wno-dev -G "%GENERATOR%" -D ZLIB_INCLUDE_DIR=%ZLIB_PATH% -D ZLIB_LIBRARY=%ZLIB_PATH%zlibwapi.lib %CMAKE_DB_VARS% -D WITH_WIN32_GUI=%with_gui% -D CMAKE_INSTALL_PREFIX="" -H%PVPGN_SOURCE% -B%PVPGN_BUILD% %cmake_log%
  -
  -
  -
  -
  -:: restore unix configs
  -@call :restore_conf
  +module\cmake\bin\cmake.exe -Wno-dev -G "%GENERATOR%" -D ZLIB_INCLUDE_DIR=%ZLIB_PATH% -D ZLIB_LIBRARY=%ZLIB_PATH%zlibwapi.lib %CMAKE_DB_VARS% -D WITH_WIN32_GUI=%_with_gui% -D CMAKE_INSTALL_PREFIX="" -H%PVPGN_SOURCE% -B%PVPGN_BUILD% %_cmake_log%
  +
   
   :: ----------- BUILD ------------
   echo.
   echo ______________[ B U I L D  W I T H  V I S U A L  S T U D I O ]__________________
   :build
  -if [%LOG%]==[true] set vs_log=^>visualstudio.log
  +if [%LOG%]==[true] set _vs_log=^>visualstudio.log
   
   :: check solution for exists 
   IF NOT EXIST "%PVPGN_BUILD%pvpgn.sln" echo. & call %i18n% 1_16 & goto THEEND
  
positive.code: 
  :: compile the solution
  :: FIXME:  /maxcpucount is supports only vs2010
  "%FrameworkDir%\%FrameworkVersion%\MSBuild.exe" "%PVPGN_BUILD%pvpgn.sln" /t:Rebuild /p:Configuration=Release;%useEnv% /consoleloggerparameters:Summary;PerformanceSummary;Verbosity=minimal %vs_log%
  
  
  
  :: ----------- RELEASE ------------
  echo.
  echo ______________________________[ R E L E A S E ]_________________________________
  @mkdir %PVPGN_RELEASE%
  
  :: copy conf directory
  
negative.code: :: copy var directories (they're empty)
  @xcopy %PVPGN_BUILD%\files\var\* %PVPGN_RELEASE%\var\ /E
  
  :: replace some conf files, like versioncheck
  @copy /Y module\include\conf\* %PVPGN_RELEASE%conf\
  
  :: create bnmotd from the determined language
  @copy /Y %PVPGN_RELEASE%conf\bnmotd-%MOTD_LANGUAGE%.txt %PVPGN_RELEASE%conf\bnmotd.txt
  
  :: replace "storage_path"
  if [%CHOICE_DB_CONF%]==[y] (
  	for /f "delims=" %%a in ('cscript "module\replace_line.vbs" "release\conf\bnetd.conf" "storage_path" "!CONF_storage_path!"') do set res=%%a
  	if ["!res!"]==["ok"] ( echo storage_path updated in bnetd.conf ) else ( echo Error: storage_path was not updated in bnetd.conf )
  )
  
  