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

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

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

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

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

copy_incareer GLOBAL\GLOBALB.LZC GCareers Main GCarUnlocks IMPREZAWRX NSX91

// Add Car Sound Tuner ini
move_file override relative absolute CarSoundData\CarDataMapping\33.ini scripts\CarSoundData\CarDataMapping\33.ini
move_file override relative absolute CarSoundData\CarTypeMapping\NSX91.ini scripts\CarSoundData\CarTypeMapping\NSX91.ini
move_file override relative absolute CarSoundData\DualGinsu\47.ini scripts\CarSoundData\DualGinsu\47.ini
move_file override relative absolute CarSoundData\DualGinsu\48.ini scripts\CarSoundData\DualGinsu\48.ini
move_file override relative absolute CarSoundData\DualGinsu\49.ini scripts\CarSoundData\DualGinsu\49.ini
move_file override relative absolute CarSoundData\DualGinsu\50.ini scripts\CarSoundData\DualGinsu\50.ini
move_file override relative absolute CarSoundData\EngineData\80.ini scripts\CarSoundData\EngineData\80.ini
move_file override relative absolute CarSoundData\EngineData\81.ini scripts\CarSoundData\EngineData\81.ini
move_file override relative absolute CarSoundData\EngineData\82.ini scripts\CarSoundData\EngineData\82.ini
move_file override relative absolute CarSoundData\EngineData\83.ini scripts\CarSoundData\EngineData\83.ini
move_file override relative absolute CarSoundData\SweetnerDataSet\80.ini scripts\CarSoundData\SweetnerDataSet\80.ini
move_file override relative absolute CarSoundData\SweetnerDataSet\81.ini scripts\CarSoundData\SweetnerDataSet\81.ini
move_file override relative absolute CarSoundData\SweetnerDataSet\82.ini scripts\CarSoundData\SweetnerDataSet\82.ini
move_file override relative absolute CarSoundData\SweetnerDataSet\83.ini scripts\CarSoundData\SweetnerDataSet\83.ini

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

// Move GIN and ABK files to the SOUND folder
move_file override relative absolute SOUND\ENGINE\CAR_49_ENG_MB_EE.abk SOUND\ENGINE\CAR_49_ENG_MB_EE.abk
move_file override relative absolute SOUND\ENGINE\CAR_49_ENG_MB_SPU.abk SOUND\ENGINE\CAR_49_ENG_MB_SPU.abk
move_file override relative absolute SOUND\ENGINE\CAR_51_ENG_MB_EE.abk SOUND\ENGINE\CAR_51_ENG_MB_EE.abk
move_file override relative absolute SOUND\ENGINE\CAR_51_ENG_MB_SPU.abk SOUND\ENGINE\CAR_51_ENG_MB_SPU.abk
move_file override relative absolute SOUND\ENGINE\CAR_53_ENG_MB_EE.abk SOUND\ENGINE\CAR_53_ENG_MB_EE.abk
move_file override relative absolute SOUND\ENGINE\CAR_53_ENG_MB_SPU.abk SOUND\ENGINE\CAR_53_ENG_MB_SPU.abk
move_file override relative absolute SOUND\ENGINE\CAR_65_ENG_MB_EE.abk SOUND\ENGINE\CAR_65_ENG_MB_EE.abk
move_file override relative absolute SOUND\ENGINE\CAR_65_ENG_MB_SPU.abk SOUND\ENGINE\CAR_65_ENG_MB_SPU.abk
move_file override relative absolute SOUND\ENGINE\GIN_BMW_M3.gin SOUND\ENGINE\GIN_BMW_M3.gin
move_file override relative absolute SOUND\ENGINE\GIN_BMW_M3_DCL.gin SOUND\ENGINE\GIN_BMW_M3_DCL.gin
move_file override relative absolute SOUND\ENGINE\GIN_BMW_M3_LagSeca_V2.gin SOUND\ENGINE\GIN_BMW_M3_LagSeca_V2.gin
move_file override relative absolute SOUND\ENGINE\GIN_BMW_M3_LagSeca_V2_DCL.gin SOUND\ENGINE\GIN_BMW_M3_LagSeca_V2_DCL.gin
move_file override relative absolute SOUND\ENGINE\GIN_BMW_M3_race.gin SOUND\ENGINE\GIN_BMW_M3_race.gin
move_file override relative absolute SOUND\ENGINE\GIN_BMW_M3_race_DCL.gin SOUND\ENGINE\GIN_BMW_M3_race_DCL.gin
move_file override relative absolute SOUND\ENGINE\GIN_TVR_Tuscan.gin SOUND\ENGINE\GIN_TVR_Tuscan.gin
move_file override relative absolute SOUND\ENGINE\GIN_TVR_Tuscan_DCL.gin SOUND\ENGINE\GIN_TVR_Tuscan_DCL.gin
move_file override relative absolute SOUND\ENGINE\SWTN_CAR_49_MB.abk SOUND\ENGINE\SWTN_CAR_49_MB.abk
move_file override relative absolute SOUND\ENGINE\SWTN_CAR_51_MB.abk SOUND\ENGINE\SWTN_CAR_51_MB.abk
move_file override relative absolute SOUND\ENGINE\SWTN_CAR_53_MB.abk SOUND\ENGINE\SWTN_CAR_53_MB.abk
move_file override relative absolute SOUND\ENGINE\SWTN_CAR_65_MB.abk SOUND\ENGINE\SWTN_CAR_65_MB.abk

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_NSX91 SECONDARY_LOGO_NSX91 SecondaryLogo\SECONDARY_LOGO_NSX91.dds

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

end