del /F .\GameTalk.*
del /F .\GameTalkMessages.*
del /F .\FileTalk.*
del /F .\FileTalkMessages.*
del /F .\FileTalkInstaller.*

set BINARY_PATH=..\FileTalkInstaller\bin\Release
IF EXIST %BINARY_PATH% GOTO USE_RELEASE
set BINARY_PATH=..\FileTalkInstaller\bin\Debug

:USE_RELEASE

tools\bin2cpp %BINARY_PATH%\GameTalk.dll GameTalk.cpp GameTalk.hpp
tools\bin2cpp %BINARY_PATH%\GameTalkMessages.dll GameTalkMessages.cpp GameTalkMessages.hpp
tools\bin2cpp %BINARY_PATH%\FileTalk.dll FileTalk.cpp FileTalk.hpp
tools\bin2cpp %BINARY_PATH%\FileTalkMessages.dll FileTalkMessages.cpp FileTalkMessages.hpp
tools\bin2cpp %BINARY_PATH%\FileTalkInstaller.exe FileTalkInstaller.cpp FileTalkInstaller.hpp
tools\bin2cpp %BINARY_PATH%\Interop.IWshRuntimeLibrary.dll Interop.IWshRuntimeLibrary.cpp Interop.IWshRuntimeLibrary.hpp
