added forgotten files
This commit is contained in:
@@ -214,18 +214,20 @@ PLATFORM_INTERFACE const char *Plat_GetEnv( const char *szVar )
|
||||
|
||||
PLATFORM_INTERFACE void Plat_SetWorkingDir( const char *psz )
|
||||
{
|
||||
|
||||
chdir(psz);
|
||||
}
|
||||
|
||||
PLATFORM_INTERFACE const char *Plat_GetWorkingDir( void )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#ifndef MAX_PATH
|
||||
#define MAX_PATH 4096
|
||||
#endif
|
||||
|
||||
PLATFORM_INTERFACE const char *Plat_GetWorkingDir( void )
|
||||
{
|
||||
static char szCwd[MAX_PATH];
|
||||
getcwd(szCwd, MAX_PATH);
|
||||
return szCwd;
|
||||
}
|
||||
|
||||
|
||||
static char s_szExecutablePath[MAX_PATH];
|
||||
#ifdef __linux__
|
||||
static ssize_t s_iExecutablePathSize = readlink("/proc/self/exe", s_szExecutablePath, MAX_PATH);
|
||||
|
||||
Reference in New Issue
Block a user