@echo off
echo .
echo .Setting IonRadiant's Daikatana Game directory to D:\\Daikatana and your MapDev directory to F:\\mod dist\\DK_update\\tools\\mapdev...
echo .

files\filescan -f files\settings.prj -s DKDIR -r D:\\Daikatana -o settings.prj -fWrite > nul
files\filescan -f settings.prj -s MAPDIR -r F:\\mod dist\\DK_update\\tools\\mapdev -o settings.prj -fWrite > nul

files\filescan -f files\gamedir.bat -s DKDIR -r D:\\Daikatana -o gamedir.bat -fWrite > nul
files\filescan -f gamedir.bat -s MAPDIR -r F:\\mod dist\\DK_update\\tools\\mapdev -o gamedir.bat -fWrite > nul

files\filescan -f files\makewal.bat -s DKDIR -r D:\\Daikatana -o makewal.bat -fWrite > nul
files\filescan -f makewal.bat -s MAPDIR -r F:\\mod dist\\DK_update\\tools\\mapdev -o makewal.bat -fWrite > nul

SET GAMEDIR=D:\Daikatana\data
SET DLLSDIR=D:\Daikatana\dlls
SET DKMAPS=F:\mod dist\DK_update\tools\mapdev

echo copy dk_ents.def %DLLSDIR%
copy files\dk_ents.def %DLLSDIR

echo copy region.wal %GAMEDIR%\textures\protex
echo copy caulk.wal %GAMEDIR%\textures\protex
mkdir %GAMEDIR%\textures
mkdir %GAMEDIR%\textures\protex
copy files\region.wal %GAMEDIR%\textures\protex
copy files\caulk.wal %GAMEDIR%\textures\protex

echo copying example.map
echo copying e3m1a.map
echo copying e3m1b.map
echo copying e3m1c.map
mkdir %DKMAPS%\example
copy files\example.map %DKMAPS%\example
copy files\e3m1a.map %DKMAPS%\example
copy files\e3m1b.map %DKMAPS%\example
copy files\e3m1c.map %DKMAPS%\example

echo Done.
echo .
pause
