- Allow proper setting of progdir for SDL targets.

This commit is contained in:
Mitchell Richters 2022-11-12 11:26:05 +11:00
parent 800e7939b8
commit 0033826544
3 changed files with 11 additions and 2 deletions

View file

@ -174,7 +174,9 @@ int main (int argc, char **argv)
Args = new FArgs(argc, argv);
// Should we even be doing anything with progdir on Unix systems?
#ifdef PROGDIR
progdir = PROGDIR;
#else
char program[PATH_MAX];
if (realpath (argv[0], program) == NULL)
strcpy (program, argv[0]);
@ -188,6 +190,7 @@ int main (int argc, char **argv)
{
progdir = "./";
}
#endif
I_StartupJoysticks();