#include #include #include "ui.h" #include "vm.h" int main(int argc, char* argv[]) { if (argc != 2) { std::cerr << "Requires path to config as an argument\n"; return 1; } vm::clearAllVMs(); auto vm = vm::VM(); auto ui = ui::UI(); // Read config std::ifstream ifs(argv[1]); std::string config((std::istreambuf_iterator(ifs)),(std::istreambuf_iterator())); vm.start(config); ui.registerCallbacks(vm); return 0; }