Fix formating problems with GetApplicationDir.

Don't ever return an empty string
This commit is contained in:
Jeffery Myers 2022-01-14 09:48:08 -08:00
parent f57727995a
commit 3a5374fac4

View File

@ -3068,6 +3068,10 @@ const char *GetApplicationDirectory(void)
}
}
}
else
{
appDir[0] = '/';
}
#elif defined(__APPLE__)
uint32_t size = sizeof(appDir);
@ -3083,6 +3087,10 @@ const char *GetApplicationDirectory(void)
}
}
}
else
{
appDir[0] = '/';
}
#endif
return appDir;