GUI: compile with no GUI

This commit is contained in:
tildearrow 2021-12-11 13:34:11 -05:00
parent af56e3b9dd
commit 5ffccc5019
1 changed files with 4 additions and 1 deletions

View File

@ -308,10 +308,13 @@ int main(int argc, char** argv) {
return 0;
}
#ifdef HAVE_GUI
g.bindEngine(&e);
g.init();
g.loop();
#else
logE("GUI requested but GUI not compiled!\n");
#endif
return 0;
}