public static void main(String[] args){
		boolean video = true;
		try {
			if(args.length>0){
				for(int i=0; i<args.length; i++) {
					switch(args[i]){
					case "--no-video":
						video = false;
						break;
					default:
						File f = new File(args[0]);
						if(f.exists() && f.isDirectory()) {
							root = new File(f.getAbsolutePath() +
									System.getProperty("file.separator") +
									"settings.json").getAbsoluteFile().getParentFile().getAbsolutePath();
						} else {
							String[] sfpl = f.getName().split("\\.");
							String ext = sfpl[sfpl.length-1];
							if(!ext.equals("ckd2")){
								System.err.println("Not ckd2 file");
								System.exit(-1);
							}
							root = new File(args[0]).getAbsoluteFile().getParentFile().getAbsolutePath();
						}
					}
				}
			}else{
				root = new File("settings.json").getAbsoluteFile().getParentFile().getAbsolutePath();
			}
			load(video);
		} catch (IOException | ClassNotFoundException | SQLException e) {
			System.err.println("Could not load");
			e.printStackTrace();
			System.exit(-1);
		}
	}