X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=main.cpp;h=4eb71ea59c4bd5f54fecf514cb4443b03232de45;hp=740c8890771f2cf81bf61458b9ee2e970ce60d9d;hb=HEAD;hpb=9811871585fa6028362c8910bfac18159c286323 diff --git a/main.cpp b/main.cpp index 740c889..4eb71ea 100644 --- a/main.cpp +++ b/main.cpp @@ -39,8 +39,11 @@ int main(int argc, char** argv){ getline(file,effects); getline(file,precond); cout << exec << ":" << effects << ":" << precond << endl; - actions.push_back(Action(exec, stringToVector(precond), stringToVector(effects))); + if (effects == "") continue; + //actions.push_back(Action(exec, stringToVector(precond), stringToVector(effects))); } Planner p(actions, stringToVector(argv[2]), stringToVector(argv[3])); + + p.execute(); return 0; }