public void loadoptions () {
		File oldconfig = new File("resources\\config.dat"), users = new File("resources\\config.cfg");
		if (oldconfig.exists()) oldconfig.renameTo(users);
		try {
			if (!users.exists()) {
				users.createNewFile();
				saveoptions();
				load = true;
				warn();
				return;
			}
			BufferedReader reader = new BufferedReader(new FileReader(users));
			String line = reader.readLine();
			while (line != null) {
				out.add(line);
				line = reader.readLine();
			}
			reader.close();
		} catch (Exception e) {
			System.err.println(e);
		}
		for (int i = 5; i < out.size(); i++) out.set(i, out.get(i).substring(out.get(i).indexOf(": ") + 2));
		int[] indexes = util.checkerrors(out.get(5));
		try {
			rc.foreground = new Color(Integer.parseInt(out.get(5).substring(out.get(5).indexOf("r=") + 2, out.get(5).indexOf("r=") + indexes[0])), Integer.parseInt(out.get(5).substring(out.get(5).indexOf("g=") + 2, out.get(5).indexOf("g=") + indexes[1])), Integer.parseInt(out.get(5).substring(out.get(5).indexOf("b=") + 2, out.get(5).indexOf("b=") + indexes[2])));
		} catch (Exception e) {
			System.err.println(e);
		}
		indexes = util.checkerrors(out.get(6));
		try {
			rc.background = new Color(Integer.parseInt(out.get(6).substring(out.get(6).indexOf("r=") + 2, out.get(6).indexOf("r=") + indexes[0])), Integer.parseInt(out.get(6).substring(out.get(6).indexOf("g=") + 2, out.get(6).indexOf("g=") + indexes[1])), Integer.parseInt(out.get(6).substring(out.get(6).indexOf("b=") + 2, out.get(6).indexOf("b=") + indexes[2])));
		} catch (Exception e) {
			System.err.println(e);
		}
		animatedbackground = Boolean.parseBoolean(out.get(7));
		urltext.setText(out.get(8));
		try {
			if (out.get(9).equals("2")) lunches = false;
			else lunches = true;
			transparent = Boolean.parseBoolean(out.get(10));
		} catch (Exception e) {
			System.err.println(e);
			users.delete();
			lunches = false;
			transparent = false;
		}
		load = true;
		warn();
	}