fix compile errors
This commit is contained in:
@@ -62,9 +62,8 @@ PathLokiGetHomeDir()
|
|||||||
gets the user's home dir (for ~/.q3a)
|
gets the user's home dir (for ~/.q3a)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *LokiGetHomeDir( qboolean *usedot )
|
char *LokiGetHomeDir(void)
|
||||||
{
|
{
|
||||||
*usedot = qtrue;
|
|
||||||
#ifndef Q_UNIX
|
#ifndef Q_UNIX
|
||||||
return NULL;
|
return NULL;
|
||||||
#else
|
#else
|
||||||
@@ -108,10 +107,10 @@ initializes some paths on linux/os x
|
|||||||
|
|
||||||
void LokiInitPaths( char *argv0 )
|
void LokiInitPaths( char *argv0 )
|
||||||
{
|
{
|
||||||
|
char *home;
|
||||||
|
|
||||||
if(!homePath)
|
if(!homePath)
|
||||||
{
|
{
|
||||||
char *home;
|
|
||||||
|
|
||||||
/* get home dir */
|
/* get home dir */
|
||||||
home = LokiGetHomeDir();
|
home = LokiGetHomeDir();
|
||||||
if( home == NULL )
|
if( home == NULL )
|
||||||
@@ -120,6 +119,8 @@ void LokiInitPaths( char *argv0 )
|
|||||||
/* set home path */
|
/* set home path */
|
||||||
homePath = home;
|
homePath = home;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
home = homePath;
|
||||||
|
|
||||||
#ifndef Q_UNIX
|
#ifndef Q_UNIX
|
||||||
/* this is kinda crap, but hey */
|
/* this is kinda crap, but hey */
|
||||||
@@ -282,7 +283,7 @@ void AddHomeBasePath( char *path )
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char temp[ MAX_OS_PATH ];
|
char temp[ MAX_OS_PATH ];
|
||||||
int l, homePathLen;
|
int homePathLen;
|
||||||
|
|
||||||
if(!homePath)
|
if(!homePath)
|
||||||
return;
|
return;
|
||||||
@@ -293,7 +294,7 @@ void AddHomeBasePath( char *path )
|
|||||||
|
|
||||||
/* strip leading dot, if homePath does not end in /. */
|
/* strip leading dot, if homePath does not end in /. */
|
||||||
homePathLen = strlen(homePath);
|
homePathLen = strlen(homePath);
|
||||||
if(!strcmp(path, ".")
|
if(!strcmp(path, "."))
|
||||||
{
|
{
|
||||||
/* -fs_homebase . means that -fs_home is to be used as is */
|
/* -fs_homebase . means that -fs_home is to be used as is */
|
||||||
strcpy(temp, homePath);
|
strcpy(temp, homePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user