[ADDED] First README & [FIX] path checking

This commit is contained in:
2020-06-04 01:54:03 +02:00
parent e0a21b5d7c
commit ee019ec121
3 changed files with 25 additions and 2 deletions

View File

@@ -22,6 +22,9 @@ public class Main {
private static boolean checkIfMKVToolNixIsValid() {
try{
String path = new YAML(new File("config.yml")).getString("mkvtoolnixPath");
if(! path.endsWith(File.separator)){
path += File.separator;
}
MKVToolProperties.getInstance().setMkvmergePath(path + "mkvmerge");
MKVToolProperties.getInstance().setMkvpropeditPath(path + "mkvproperties");
}catch(YamlKeyNotFoundException | IOException | YamlInvalidContentException e){