@echo off
echo.
echo Setting IonRadiant's Daikatana Game directory to %1 and your MapDev directory to %2...
echo.
files\filescan -f files\settings.prj -s DKDIR -r %1 -o settings.prj -fWrite > nul
files\filescan -f settings.prj -s MAPDIR -r %2 -o settings.prj -fWrite > nul

files\filescan -f files\gamedir.bat -s DKDIR -r %1 -o gamedir.bat -fWrite > nul
files\filescan -f gamedir.bat -s MAPDIR -r %2 -o gamedir.bat -fWrite > nul

files\filescan -f files\makewal.bat -s DKDIR -r %1 -o makewal.bat -fWrite > nul
files\filescan -f makewal.bat -s MAPDIR -r %2 -o makewal.bat -fWrite > nul
call gamedir

rem echo copy colormap.bmp %GAMEDIR%
rem copy files\colormap.bmp %GAMEDIR%

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 copy example.map %DKMAPS%\example
echo copy e3m1a.map %DKMAPS%\example
echo copy e3m1b.map %DKMAPS%\example
echo copy e3m1c.map %DKMAPS%\example
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
