;Universal Install Server version 1.7
;Author: Il.Socio, using wadowice's method
;Greetings to wadowice, templove, roland, CODeRUS
;RomPatcher+ v2.2 or above is needed
;For 3rd / 3rd FP1 / 3rd FP2 / 5th / S^3 / Anna / Belle / Belle FP1
;www.n8fanclub.com

#ifdef RP+VERSION_2.0
	#define NOT_COMPATIBLE
#endif

#ifdef RP+VERSION_2.1
	#define NOT_COMPATIBLE
#endif

#ifdef PLATFORM_3.0
	;3rd
	#define PRE_S3
#endif

#ifdef PLATFORM_3.1
	;3rd FP1
	#define PRE_S3
#endif

#ifdef PLATFORM_3.2
	;3rd FP2
	#define PRE_S3
#endif

#ifdef PLATFORM_5.0
	;5th aka S^1
	#define PRE_S3
#endif

#ifdef PLATFORM_5.1
	;S^2
	#define PRE_S3
#endif


#ifdef NOT_COMPATIBLE
	error:Please update to RP+ v2.2 or above to use this patch!
#else
	;If the line below is commented then the "Grant Capabilities" dialog will not be shown.
	;Must be commented to properly install smartinstalleradm_2_02_0_signed.sis (a SmartInstaller component)
	;SnR:sys\bin\installserver.exe:0028??D0??A9??A8????????0028??D0??A9??A8:00028028??A9??A8????????00280028??A9??A8
	#ifdef PLATFORM_5.2
		; S^3 aka Anna - Thanks to CODeRUS for this fix
		SnR:sys\bin\installserver.exe:606802250100??31??31????????:606802250100??31??3100234B61
	#else
		#ifdef PRE_S3
			; 3rd - 3rd FP1 - 3rd FP2 - 5th
			SnR:sys\bin\installserver.exe:02250B58????:022500230B50
		#else
			; Belle - Belle FP1 - Carla...
			SnR:sys\bin\installserver.exe:6068ff21????0b58??????????4e:6068ff21????00230225ed434350
		#endif
	#endif
	SnR:sys\bin\installserver.exe:0028??D0A0690521:0028??E0A0690521
	SnR:sys\bin\installserver.exe:401C??D012:401C??E012
	SnR:sys\bin\installserver.exe:0028??D1????14250028:0028??E0019814250028
	SnR:sys\bin\installserver.exe:70B5060000251324:0020704700251324
#endif

