gets the user's home dir (for ~/.q3a)
*/
-char *LokiGetHomeDir( qboolean *usedot )
+char *LokiGetHomeDir(void)
{
- *usedot = qtrue;
#ifndef Q_UNIX
return NULL;
#else
void LokiInitPaths( char *argv0 )
{
+ char *home;
+
if(!homePath)
{
- char *home;
-
/* get home dir */
home = LokiGetHomeDir();
if( home == NULL )
/* set home path */
homePath = home;
}
+ else
+ home = homePath;
#ifndef Q_UNIX
/* this is kinda crap, but hey */
{
int i;
char temp[ MAX_OS_PATH ];
- int l, homePathLen;
+ int homePathLen;
if(!homePath)
return;
/* strip leading dot, if homePath does not end in /. */
homePathLen = strlen(homePath);
- if(!strcmp(path, ".")
+ if(!strcmp(path, "."))
{
/* -fs_homebase . means that -fs_home is to be used as is */
strcpy(temp, homePath);