echo Setting up the directory for "The Fates of Twinion"
godir %1:%6\TWINION CantTwinion
godir %1:%6\TWINION\SAVE CantTwinion
echo Saving any existing character data files to %1:%6\TWINION\SAVE...
copy ..\twinchar.dat /q
copy ..\automaps.dat /q
godir %1:%6\TWINION CantTwinion
del *.*

rem Is there space?
space %1: 4900 NoSpace
if errorlevel 1 goto NoSpace

echo Copying Twinion Files...
defuse %2 %1 part %6\TWINION

echo UnCompressing "The Fates of Twinion"
puff /D _*.*
copy save\*.dat /q

if exist %1:%6\tsn.prg goto YesTSN

echo %3>..\lsci.cfg

:YesTSN
echo @echo off>..\twinion.bat
echo cd twinion>>..\twinion.bat
echo twinion>>..\twinion.bat

copy %2:\TWPatch\*.* /q
if exist _*.* puff /D _*.*

cls
echo Installation complete.
echo 
echo 
echo Type "cd %6\TWINION"
echo      "TWINION"
echo   to run The Fates of Twinion
echo 
pause
cd..
end

:NoSpace
cls
echo There is not enough space on %1: to install Twinion
echo 4.9 Megabytes are required. Delete some unused files.
pause
end

:CantTwinion
Alert Unable to create %1:%6\TWINION
end


