mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
utils: mdldec: add support for absolute paths on *nix.
This commit is contained in:
committed by
a1batross
parent
3eed2769d5
commit
92faa25670
@@ -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, "/\\" );
|
||||
|
||||
Reference in New Issue
Block a user