anchor.diff:  copy /Y "%PVPGN_BUILD%\pvpgn.sln" "%PVPGN_DEVKIT%\"
   
   :: build each project
  -call :build_project src\bnetd bnetd
  -call :build_project src\bnpass bnpass
  -call :build_project src\bnpass sha1hash
  -call :build_project src\bntrackd bntrackd
  -call :build_project src\bniutils bni2tga
  -call :build_project src\bniutils bnibuild
  -call :build_project src\bniutils bniextract
  -call :build_project src\bniutils bnilist
  -call :build_project src\bniutils tgainfo
  -call :build_project src\common common
  -call :build_project src\compat compat
  -call :build_project src\client bnbot
  -call :build_project src\client bnchat
  -call :build_project src\client bnftp
  -call :build_project src\client bnstat
  -call :build_project src\d2cs d2cs
  -call :build_project src\d2dbs d2dbs
  -call :build_project src\win32 win32
  -call :build_project fmt fmt
  +call :build_project src\bnetd bnetd true
  +call :build_project src\bnpass bnpass true
  +call :build_project src\bnpass sha1hash true
  +call :build_project src\bntrackd bntrackd true
  +call :build_project src\bniutils bni2tga true
  +call :build_project src\bniutils bnibuild true
  +call :build_project src\bniutils bniextract true
  +call :build_project src\bniutils bnilist true
  +call :build_project src\bniutils tgainfo true
  +call :build_project src\client bnbot true
  +call :build_project src\client bnchat true
  +call :build_project src\client bnftp true
  +call :build_project src\client bnstat true
  +call :build_project src\d2cs d2cs true
  +call :build_project src\d2dbs d2dbs true
  +:: keep original output dir for libs
  +call :build_project src\common common false
  +call :build_project src\compat compat false
  +call :build_project src\win32 win32 false
  +call :build_project fmt fmt false
   
   
   :: remove unused projects generated by cmake
  
positive.code: 	:: replace source path
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH%source" "%PROJECT_ROOT_DIR%source"
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj.filters" "%CURRENT_PATH%source" "%PROJECT_ROOT_DIR%source"
  	:: replace release and debug paths
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH%%PVPGN_BUILD%\%1\Debug" "%PROJECT_ROOT_DIR%release"
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH%%PVPGN_BUILD%\%1\Release" "%PROJECT_ROOT_DIR%release"
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH%%PVPGN_BUILD%\%1\RelWithDebInfo" "%PROJECT_ROOT_DIR%release"
  	:: replace unix like build path
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH_BACKSLASH%%PVPGN_BUILD%/%1" "../%2"
  	:: replace path for magic builder module 
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH%module" "%PROJECT_ROOT_DIR%module"
  	:: replace new path in pvpgn.sln
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%pvpgn.sln" "%1\%2" "projects\%2\%2"
  	
  	:: libs now build into release
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "..\common\Debug\common.lib" "%PROJECT_ROOT_DIR%%PVPGN_BUILD%\src\common\Debug\common.lib"
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "..\compat\Debug\compat.lib" "%PROJECT_ROOT_DIR%%PVPGN_BUILD%\src\compat\Debug\compat.lib"
  
negative.code: goto :THEEND
  
  
  :build_project <path> <name> <change_out_dir>
  	if not exist "%PVPGN_DEVKIT%projects\%2" mkdir "%PVPGN_DEVKIT%projects\%2"
  	copy /Y "%PVPGN_BUILD%\%1\%2.vcxproj*" "%PVPGN_DEVKIT%projects\%2"
  	
  