introduces ios support? still needs metal
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
#include "unistd.h"
|
||||
#include "libgen.h"
|
||||
#include "sys/stat.h"
|
||||
#ifdef __APPLE__
|
||||
#include <mach-o/dyld.h>
|
||||
#endif
|
||||
|
||||
unsigned int g_hashState = 102851263;
|
||||
unsigned int CProject::GenerateProjectHash( void )
|
||||
@@ -23,7 +26,13 @@ unsigned int CProject::GenerateProjectHash( void )
|
||||
};
|
||||
|
||||
static char path[1024];
|
||||
#ifdef __linux__
|
||||
static ssize_t pathSize = readlink("/proc/self/exe", path, sizeof(path) - 1);
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
static uint32_t pathSize = sizeof(path);
|
||||
int pathResult = _NSGetExecutablePath(path, &pathSize);
|
||||
#endif
|
||||
char *szPathDir = dirname(path);
|
||||
char *szBuildDir = 0;
|
||||
char *IFileSystem2::OwnDirectory()
|
||||
|
||||
Reference in New Issue
Block a user