2016-07-07 07:04:24 +00:00
|
|
|
#include "lovr.h"
|
2018-09-27 04:45:45 +00:00
|
|
|
#include "version.h"
|
2018-05-15 04:38:50 +00:00
|
|
|
#include <string.h>
|
2018-02-17 17:18:08 +00:00
|
|
|
#include <stdlib.h>
|
2018-05-15 04:38:50 +00:00
|
|
|
#include <stdio.h>
|
2018-02-17 17:18:08 +00:00
|
|
|
|
2016-08-08 20:51:22 +00:00
|
|
|
int main(int argc, char** argv) {
|
2018-09-27 04:45:45 +00:00
|
|
|
if (argc > 1 && (!strcmp(argv[1], "--version") || !strcmp(argv[1], "-v"))) {
|
2018-02-17 17:18:08 +00:00
|
|
|
printf("LOVR %d.%d.%d (%s)\n", LOVR_VERSION_MAJOR, LOVR_VERSION_MINOR, LOVR_VERSION_PATCH, LOVR_VERSION_ALIAS);
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
|
2018-05-15 04:38:50 +00:00
|
|
|
int status;
|
|
|
|
while (1) {
|
|
|
|
if (!lovrRun(argc, argv, &status)) {
|
|
|
|
return status;
|
2018-04-26 03:07:28 +00:00
|
|
|
}
|
|
|
|
}
|
2016-07-07 07:04:24 +00:00
|
|
|
}
|