Fix small stuff

This commit is contained in:
Miloslav Ciz 2025-05-31 18:23:13 +02:00
parent f7a24f2aa1
commit 0513b32540
4 changed files with 27 additions and 5 deletions

View file

@ -87,11 +87,27 @@ void LCR_log(const char *str)
printf("LOG: %s\n",str);
}
void printHelp(void)
{
printf(
"Licar, 3D racing game, v. " LCR_VERSION ", X11 frontend, args:\n"
" -h print help and quit\n"
LCR_ARG_HELP_STR);
}
int main(int argc, char **argv)
{
int running = 1;
struct timeval now;
for (int i = 0; i < argc; ++i)
if (argv[i][0] == '-')
switch (argv[i][1])
{
case 'h': printHelp(); return 0; break;
default: break;
}
LCR_gameInit(argc,(const char **) argv);
Display *display = XOpenDisplay(0);