mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-03 21:13:42 +00:00
19 lines
399 B
C
19 lines
399 B
C
#include "lovr.h"
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char** argv) {
|
|
if (argc > 1 && !strcmp(argv[1], "--version")) {
|
|
printf("LOVR %d.%d.%d (%s)\n", LOVR_VERSION_MAJOR, LOVR_VERSION_MINOR, LOVR_VERSION_PATCH, LOVR_VERSION_ALIAS);
|
|
exit(0);
|
|
}
|
|
|
|
int status;
|
|
while (1) {
|
|
if (!lovrRun(argc, argv, &status)) {
|
|
return status;
|
|
}
|
|
}
|
|
}
|