Title Class 374 'Eurostar' Reskin by Major Wales
@echo off
echo Installing required GeoPcDx files...

:: Extract GeoPcDx into "Eurostar"
	7za.exe e "%~dp0DTG\BR407Pack01\BR407Pack01Assets.ap" "RailVehicles\Electric\BR407\DB\1_kl_endwagen.GeoPcDx"  -o"%~dp0DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar" -y
	7za.exe e "%~dp0DTG\BR407Pack01\BR407Pack01Assets.ap" "RailVehicles\Electric\BR407\DB\1_kl_wagen.GeoPcDx"  -o"%~dp0DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar" -y
	7za.exe e "%~dp0DTG\BR407Pack01\BR407Pack01Assets.ap" "RailVehicles\Electric\BR407\DB\2_kl_endwagen.GeoPcDx"  -o"%~dp0DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar" -y
	7za.exe e "%~dp0DTG\BR407Pack01\BR407Pack01Assets.ap" "RailVehicles\Electric\BR407\DB\2_kl_servicewagen.GeoPcDx"  -o"%~dp0DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar" -y
	7za.exe e "%~dp0DTG\BR407Pack01\BR407Pack01Assets.ap" "RailVehicles\Electric\BR407\DB\2_kl_wagen.GeoPcDx"  -o"%~dp0DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar" -y
	7za.exe e "%~dp0DTG\BR407Pack01\BR407Pack01Assets.ap" "RailVehicles\Electric\BR407\DB\2_kl_wagen_2.GeoPcDx"  -o"%~dp0DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar" -y
	7za.exe e "%~dp0DTG\BR407Pack01\BR407Pack01Assets.ap" "RailVehicles\Electric\BR407\DB\2_kl_wagen_3.GeoPcDx"  -o"%~dp0DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar" -y
	7za.exe e "%~dp0DTG\BR407Pack01\BR407Pack01Assets.ap" "RailVehicles\Electric\BR407\DB\Bordrestaurant.GeoPcDx"  -o"%~dp0DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar" -y


::Extract "CabView", and "Characters" folders into "BR407Pack01"
	7za.exe x "%~dp0DTG\BR407Pack01\BR407Pack01Assets.ap" "RailVehicles\Electric\BR407\DB\CabView"  -o"%~dp0DTG\BR407Pack01\temp" -y
	7za.exe x "%~dp0DTG\BR407Pack01\BR407Pack01Assets.ap" "RailVehicles\Electric\BR407\DB\Characters"  -o"%~dp0DTG\BR407Pack01\temp" -y

:: Move above folders into "Eurostar"

	mkdir "DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar\CabView"
	xcopy /s "%~dp0DTG\BR407Pack01\temp\RailVehicles\Electric\BR407\DB\CabView" "DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar\CabView"

	mkdir "DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar\Characters"
	xcopy /s "%~dp0DTG\BR407Pack01\temp\RailVehicles\Electric\BR407\DB\Characters" "DTG\BR407Pack01\RailVehicles\Electric\BR407\Eurostar\Characters"

echo Install complete.
:: Remove the above folders from "DB" as they are no longer needed.
	rd /s /q "%~dp0DTG\BR407Pack01\temp"
pause

del "C374_Eurostar_Install.bat"