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

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

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

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

// Add SlotOverrides
import override GLOBAL\GLOBALB.LZC SlotOverrides SlotOverrides\NSX_PART_WING_MIRROR.BIN

if collection_exists GLOBAL\GLOBALB.LZC CarTypeInfos NSX
	do
		// nothing
	else
		// Add unlock condition
	copy_incareer GLOBAL\GLOBALB.LZC GCareers Main GCarUnlocks IMPREZAWRX NSX
end

// Add Car Sound Tuner ini
move_file override relative absolute CarSoundData\CarTypeMapping\NSX.ini scripts\CarSoundData\CarTypeMapping\NSX.ini

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

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

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

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