[VERSN2]
//unlocks memory files and installs speedreflect.asi in scripts folder
unlock_memory all
speedreflect auto

if collection_exists GLOBAL\GLOBALB.LZC CarTypeInfos BMWM5E60
	do
		// nothing
	else
end

// Move BIN files to the BMWM5E60 folder
move_file override relative absolute BMWM5E60\GEOMETRY.BIN CARS\BMWM5E60\GEOMETRY.BIN
move_file override relative absolute BMWM5E60\TEXTURES.BIN CARS\BMWM5E60\TEXTURES.BIN

// Add CarTypeInfos
import override GLOBAL\GLOBALB.LZC CarTypeInfos CarTypeInfos\BMWM5E60.BIN

// Add Collisions
import override GLOBAL\GLOBALB.LZC Collisions Collisions\BMWM5E60.BIN

// Add DBModelParts
import override GLOBAL\GLOBALB.LZC DBModelParts DBModelParts\BMWM5E60.BIN

// Add Unlimiter ini
move_file override relative absolute UnlimiterData\BMWM5E60.ini scripts\UnlimiterData\BMWM5E60.ini 

// Add Icons Textures
import override FRONTEND\FRONTB.LZC TPKBlocks Textures\UNLIMITERICONS.BIN
import override GLOBAL\GLOBALB.LZC TPKBlocks Textures\SEAT_TEXTURES.BIN

if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
	do
		update_collection FRONTEND\FRONTB.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
	else
end

combobox "Install 512x Vinyls" "Install 1024x Vinyls" "Select an action"
	"Install 512x Vinyls"
		// Add 512x vinyls
		move_file override relative absolute BMWM5E60\VINYLS_512X.BIN CARS\BMWM5E60\VINYLS.BIN 

	"Install 1024x Vinyls"
		// Add 1024x vinyls
		move_file override relative absolute BMWM5E60\VINYLS_1024X.BIN CARS\BMWM5E60\VINYLS.BIN 

end

combobox "Install Vanilla Quality M5 Menu Logo" "Install High Quality M5 Menu Logo" "Select an action"
	"Install Vanilla Quality M5 Menu Logo"
		// Add badge texture
		add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_M5_E60 SECONDARY_LOGO_M5_E60 SecondaryLogo\SECONDARY_LOGO_M5_E60.dds

	"Install High Quality M5 Menu Logo"
		// Add HQ badge texture
		add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_M5_E60 SECONDARY_LOGO_M5_E60 SecondaryLogo\HQ\SECONDARY_LOGO_M5_E60.dds

end