/* 
 * Script decompiled by jagdecs2 v3.2
 * Decompiler opts:
 * --------------
 * t1LocalAnalyzer:true
 * t2LocalAnalyzer:true
 * beautifier:true
 * --------------
 * Made by mgi125 ;)
 */


void script_8735(int a0,int a1,int a2,int a3) {
	script_7772(a3, a0, a1, a2);
	int v0 = idx17mapData('i', 'i', 7710, a3);
	if (script_8699(v0) == 0) {
		cs2method_10810("That layout doesn't have any data saved to it yet. Pick another one.");
		return;
	}
	if (cs2method_10580() == 1 && v0 == 4) {
		cs2method_10810("Old School preset is only available in the Java version.");
		return;
	}
	if (script_5767() == 1) {
		cs2method_10810("Switching presets is disabled within the tutorial.");
		return;
	}
	if (client_configs['cfg3680'].bitcfg22315 == 1) {
		cs2method_10810("That feature is disabled in Legacy Mode");
		return;
	}
	script_8741(v0);
	return;
}
