added compile_commands.json
This commit is contained in:
@@ -23,11 +23,25 @@ unsigned int CProject::GenerateProjectHash( void )
|
||||
|
||||
static char path[1024];
|
||||
static ssize_t pathSize = readlink("/proc/self/exe", path, sizeof(path) - 1);
|
||||
static char* pathDir = dirname(path);
|
||||
char *szPathDir = dirname(path);
|
||||
char *szBuildDir = 0;
|
||||
char *IFileSystem2::OwnDirectory()
|
||||
{
|
||||
return pathDir;
|
||||
return szPathDir;
|
||||
};
|
||||
char *IFileSystem2::BuildDirectory()
|
||||
{
|
||||
return szBuildDir;
|
||||
};
|
||||
|
||||
void IFileSystem2::CopyFile( const char *szDestination, const char *szOrigin )
|
||||
{
|
||||
CUtlVector<CUtlString> args = {
|
||||
CUtlString(szOrigin),
|
||||
CUtlString(szDestination),
|
||||
};
|
||||
IRunner::Run("cp", args);
|
||||
}
|
||||
|
||||
void IFileSystem2::MakeDirectory( const char *psz )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user