fix two more bugs
This commit is contained in:
parent
50e0a3fb24
commit
d4500cb5d9
|
|
@ -75,7 +75,7 @@ char *LokiGetHomeDir( void )
|
||||||
TCHAR mydocsdir[MAX_PATH + 1];
|
TCHAR mydocsdir[MAX_PATH + 1];
|
||||||
if(SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, 0, mydocsdir))
|
if(SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, 0, mydocsdir))
|
||||||
{
|
{
|
||||||
snprintf(buf, "%s/My Games", mydocsdir);
|
snprintf(buf, sizeof(buf), "%s/My Games", mydocsdir);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -119,6 +119,8 @@ initializes some paths on linux/os x
|
||||||
void LokiInitPaths( char *argv0 )
|
void LokiInitPaths( char *argv0 )
|
||||||
{
|
{
|
||||||
#ifndef Q_UNIX
|
#ifndef Q_UNIX
|
||||||
|
char *home;
|
||||||
|
|
||||||
/* this is kinda crap, but hey */
|
/* this is kinda crap, but hey */
|
||||||
strcpy( installPath, "../" );
|
strcpy( installPath, "../" );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user