driver cross-compilation
This commit is contained in:
@@ -48,6 +48,34 @@ public:
|
||||
virtual bool ShouldRecompile( const char *szSource, const char *szOutput ) override;
|
||||
};
|
||||
|
||||
char *GetWindowsPath( const char *szPath )
|
||||
{
|
||||
char *szNewPath = (char*)V_malloc(V_strlen(szPath)+1);
|
||||
int i = 0;
|
||||
V_strcpy(szNewPath, szPath);
|
||||
while(szNewPath[i])
|
||||
{
|
||||
if (szNewPath[i] == '/')
|
||||
szNewPath[i] = '\\';
|
||||
i++;
|
||||
}
|
||||
return szNewPath;
|
||||
}
|
||||
|
||||
char *GetPOSIXPath( const char *szPath )
|
||||
{
|
||||
char *szNewPath = (char*)V_malloc(V_strlen(szPath)+1);
|
||||
int i = 0;
|
||||
V_strcpy(szNewPath, szPath);
|
||||
while(szNewPath[i])
|
||||
{
|
||||
if (szNewPath[i] == '\\')
|
||||
szNewPath[i] = '/';
|
||||
i++;
|
||||
}
|
||||
return szNewPath;
|
||||
}
|
||||
|
||||
EXPOSE_INTERFACE(CPOSIXFileSystem2, IFileSystem2, FILE_SYSTEM_2_INTERFACE_NAME);
|
||||
IFileSystem2 *filesystem2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user