Merge branch 'master' into sdl2
Conflicts: Makefile code/renderercommon/qgl.h code/renderergl1/tr_local.h code/sdl/sdl_glimp.c
This commit is contained in:
commit
d9d52f0306
427 changed files with 66082 additions and 14083 deletions
|
@ -89,15 +89,15 @@ char *Sys_DefaultHomePath( void )
|
|||
TCHAR szPath[MAX_PATH];
|
||||
FARPROC qSHGetFolderPath;
|
||||
HMODULE shfolder = LoadLibrary("shfolder.dll");
|
||||
|
||||
|
||||
if(shfolder == NULL)
|
||||
{
|
||||
Com_Printf("Unable to load SHFolder.dll\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if(!*homePath && com_homepath)
|
||||
{
|
||||
if(shfolder == NULL)
|
||||
{
|
||||
Com_Printf("Unable to load SHFolder.dll\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
qSHGetFolderPath = GetProcAddress(shfolder, "SHGetFolderPathA");
|
||||
if(qSHGetFolderPath == NULL)
|
||||
{
|
||||
|
@ -120,10 +120,9 @@ char *Sys_DefaultHomePath( void )
|
|||
Q_strcat(homePath, sizeof(homePath), com_homepath->string);
|
||||
else
|
||||
Q_strcat(homePath, sizeof(homePath), HOMEPATH_NAME_WIN);
|
||||
|
||||
FreeLibrary(shfolder);
|
||||
}
|
||||
|
||||
FreeLibrary(shfolder);
|
||||
return homePath;
|
||||
}
|
||||
|
||||
|
@ -283,6 +282,15 @@ const char *Sys_Dirname( char *path )
|
|||
return dir;
|
||||
}
|
||||
|
||||
/*
|
||||
==============
|
||||
Sys_FOpen
|
||||
==============
|
||||
*/
|
||||
FILE *Sys_FOpen( const char *ospath, const char *mode ) {
|
||||
return fopen( ospath, mode );
|
||||
}
|
||||
|
||||
/*
|
||||
==============
|
||||
Sys_Mkdir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue