utils: mdldec: add support for absolute paths on *nix.

This commit is contained in:
Andrey Akhmichin
2025-07-27 21:27:51 +05:00
committed by a1batross
parent 3eed2769d5
commit 92faa25670

View File

@@ -40,7 +40,6 @@ qboolean MakeDirectory( const char *path )
// with FS_CreatePath
#if XASH_WIN32
DWORD dwFlags = GetFileAttributes( path );
return ( dwFlags != -1 ) && ( dwFlags & FILE_ATTRIBUTE_DIRECTORY );
#else
struct stat buf;
@@ -64,6 +63,9 @@ qboolean MakeFullPath( const char *path )
{
char *p = (char *)path, tmp;
if( *p == '/' )
p++;
for( ; *p; )
{
p = Q_strpbrk( p, "/\\" );