FAILAT 21
IF $System EQ "UAE"
	ECHO "Renaming Picasso96 Settings to Picasso96SettingsPiStorm"
	IF exists Devs:Picasso96Settings   
	RENAME Devs:Picasso96Settings Devs:Picasso96SettingsPiStorm QUIET
	ENDIF
	IF exists Devs:Monitors/Videocore
		ECHO "Moving Videocore monitor to SYS:Storage/Monitors/"
		COPY >NIL: Devs:Monitors/Videocore SYS:Storage/Monitors/
		DELETE Devs:Monitors/Videocore ALL QUIET FORCE
	ENDIF
	IF exists Devs:Monitors/Videocore.info
		ECHO "Moving Videocore monitor .info to SYS:Storage/Monitors/"
		COPY >NIL: Devs:Monitors/Videocore.info SYS:Storage/Monitors/
		DELETE Devs:Monitors/Videocore.info ALL QUIET FORCE
	ENDIF
	IF exists SYS:storage/Monitors/Uaegfx
		ECHO "Moving Uaegfx monitor from SYS:Storage/Monitors/"
		COPY >NIL: SYS:Storage/Monitors/Uaegfx Devs:Monitors/
		DELETE SYS:Storage/Monitors/Uaegfx ALL QUIET FORCE

	ENDIF
	IF exists SYS:storage/Monitors/Uaegfx.info
		ECHO "Moving Uaegfx monitor .info from SYS:Storage/Monitors/"
		COPY >NIL: SYS:Storage/Monitors/Uaegfx.info Devs:Monitors/
		DELETE SYS:Storage/Monitors/Uaegfx.info ALL QUIET FORCE
	ENDIF
	IF exists Sys:Prefs/Env-Archive/sys/screenmode.prefs.User
		IF $ScreenModeChipset EQ "RTG"
			ECHO "Videocore Mode selected. Using Native screenmode."
			Sys:Prefs/ScreenMode FROM Sys:Prefs/Env-Archive/sys/screenmode.prefs.Native USE >NIL:
		ELSE
			ECHO "Using User Defined ScreenMode"
			Sys:Prefs/ScreenMode FROM Sys:Prefs/Env-Archive/sys/screenmode.prefs.User USE >NIL:
		ENDIF
	ENDIF
ELSE
	IF exists Devs:Monitors/Uaegfx 
		ECHO "Moving Uaegfx monitor to SYS:Storage/Monitors/"
		COPY >NIL: Devs:Monitors/Uaegfx SYS:storage/Monitors/
		DELETE Devs:Monitors/Uaegfx ALL QUIET FORCE
	ENDIF
	IF exists Devs:Monitors/Uaegfx.info 
		ECHO "Moving Uaegfx monitor .info to SYS:Storage/Monitors/"
		COPY >NIL: Devs:Monitors/Uaegfx.info SYS:storage/Monitors/
		DELETE Devs:Monitors/Uaegfx.info ALL QUIET FORCE
	ENDIF
	IF exists SYS:Storage/Monitors/Videocore
		ECHO "Moving Videocore monitor from SYS:Storage/Monitors/"
		COPY >NIL: SYS:Storage/Monitors/Videocore Devs:Monitors/
		DELETE SYS:Storage/Monitors/Videocore ALL QUIET FORCE
	ENDIF
	IF exists SYS:Storage/Monitors/Videocore.info
		ECHO "Moving Videocore monitor from SYS:Storage/Monitors/"
		COPY >NIL: SYS:Storage/Monitors/Videocore.info Devs:Monitors/
		DELETE SYS:Storage/Monitors/Videocore.info ALL QUIET FORCE
	ENDIF

	IF exists Devs:Picasso96SettingsPiStorm
		ECHO "Restoring Picasso96 Settings"
		RENAME Devs:Picasso96SettingsPiStorm Devs:Picasso96Settings QUIET
	ENDIF
ENDIF
FAILAT 10
