driver cross-compilation

This commit is contained in:
2025-10-29 01:30:21 +02:00
parent 1a888aad7b
commit a22ab19a8c
15 changed files with 336 additions and 22 deletions

View File

@@ -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;