Import icculus.org release (2014-12-25)
This commit is contained in:
parent
819e239f23
commit
22475d6d94
57 changed files with 3039 additions and 374 deletions
|
@ -678,7 +678,7 @@ static char* GetLocalDirectory(void)
|
|||
|
||||
if( homepath != NULL ) {
|
||||
|
||||
homedir = (unsigned char*)malloc(strlen(homedrive)+strlen(homepath)+1);
|
||||
homedir = (char*)malloc(strlen(homedrive)+strlen(homepath)+1);
|
||||
|
||||
strcpy(homedir, homedrive);
|
||||
strcat(homedir, homepath);
|
||||
|
@ -704,7 +704,7 @@ static char* GetLocalDirectory(void)
|
|||
homedir = _strdup(".");
|
||||
}
|
||||
|
||||
localdir = (unsigned char*)malloc(strlen(homedir) + 10);
|
||||
localdir = (char*)malloc(strlen(homedir) + 10);
|
||||
strcpy(localdir, homedir);
|
||||
strcat(localdir, "\\AvPLinux"); // temp name, maybe
|
||||
|
||||
|
@ -762,11 +762,13 @@ static const char* GetGlobalDirectory(const char* argv0)
|
|||
/*
|
||||
Game-specific initialization
|
||||
*/
|
||||
extern "C" {
|
||||
extern char const *SecondTex_Directory;
|
||||
extern char const *SecondSoundDir;
|
||||
}
|
||||
|
||||
void InitGameDirectories(char *argv0)
|
||||
{
|
||||
extern char *SecondTex_Directory;
|
||||
extern char *SecondSoundDir;
|
||||
|
||||
const char* localdir;
|
||||
const char* globaldir;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue