Lines Matching refs:path

285 BOOL FS_CreateFile(const char *path, u32 permit)  in FS_CreateFile()  argument
288 FS_DEBUG_TRACE( "%s(%s)\n", __FUNCTION__, path); in FS_CreateFile()
289 SDK_NULL_ASSERT(path); in FS_CreateFile()
294 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_CreateFile()
320 BOOL FS_DeleteFile(const char *path) in FS_DeleteFile() argument
323 FS_DEBUG_TRACE( "%s(%s)\n", __FUNCTION__, path); in FS_DeleteFile()
324 SDK_NULL_ASSERT(path); in FS_DeleteFile()
329 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_DeleteFile()
400 BOOL FS_GetPathInfo(const char *path, FSPathInfo *info) in FS_GetPathInfo() argument
404 SDK_NULL_ASSERT(path); in FS_GetPathInfo()
410 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_GetPathInfo()
437 BOOL FS_SetPathInfo(const char *path, const FSPathInfo *info) in FS_SetPathInfo() argument
441 SDK_NULL_ASSERT(path); in FS_SetPathInfo()
447 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_SetPathInfo()
474 BOOL FS_CreateDirectory(const char *path, u32 permit) in FS_CreateDirectory() argument
477 FS_DEBUG_TRACE( "%s(%s)\n", __FUNCTION__, path); in FS_CreateDirectory()
478 SDK_NULL_ASSERT(path); in FS_CreateDirectory()
483 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_CreateDirectory()
509 BOOL FS_DeleteDirectory(const char *path) in FS_DeleteDirectory() argument
512 FS_DEBUG_TRACE( "%s(%s)\n", __FUNCTION__, path); in FS_DeleteDirectory()
513 SDK_NULL_ASSERT(path); in FS_DeleteDirectory()
518 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_DeleteDirectory()
590 static BOOL FSi_GetFullPath(char *dst, const char *path) in FSi_GetFullPath() argument
592 FSArchive *arc = FS_NormalizePath(path, NULL, dst); in FSi_GetFullPath()
621 static BOOL FSi_ComplementDirectory(const char *path, char *autogen) in FSi_ComplementDirectory() argument
627 if (FSi_GetFullPath(tmppath, path)) in FSi_ComplementDirectory()
718 BOOL FS_CreateFileAuto(const char *path, u32 permit) in FS_CreateFileAuto() argument
722 FS_DEBUG_TRACE( "%s(%s)\n", __FUNCTION__, path); in FS_CreateFileAuto()
723 if (FSi_ComplementDirectory(path, autogen)) in FS_CreateFileAuto()
725 result = FS_CreateFile(path, permit); in FS_CreateFileAuto()
743 BOOL FS_DeleteFileAuto(const char *path) in FS_DeleteFileAuto() argument
745 FS_DEBUG_TRACE( "%s(%s)\n", __FUNCTION__, path); in FS_DeleteFileAuto()
747 return FS_DeleteFile(path); in FS_DeleteFileAuto()
786 BOOL FS_CreateDirectoryAuto(const char *path, u32 permit) in FS_CreateDirectoryAuto() argument
790 FS_DEBUG_TRACE( "%s(%s)\n", __FUNCTION__, path); in FS_CreateDirectoryAuto()
791 if (FSi_ComplementDirectory(path, autogen)) in FS_CreateDirectoryAuto()
793 result = FS_CreateDirectory(path, permit); in FS_CreateDirectoryAuto()
811 BOOL FS_DeleteDirectoryAuto(const char *path) in FS_DeleteDirectoryAuto() argument
814 FS_DEBUG_TRACE( "%s(%s)\n", __FUNCTION__, path); in FS_DeleteDirectoryAuto()
815 if (path && *path) in FS_DeleteDirectoryAuto()
818 if (FSi_GetFullPath(tmppath, path)) in FS_DeleteDirectoryAuto()
929 BOOL FS_GetArchiveResource(const char *path, FSArchiveResource *resource) in FS_GetArchiveResource() argument
932 SDK_NULL_ASSERT(path); in FS_GetArchiveResource()
935 FSArchive *arc = FS_NormalizePath(path, NULL, NULL); in FS_GetArchiveResource()
961 u32 FSi_GetSpaceToCreateDirectoryEntries(const char *path, u32 bytesPerCluster) in FSi_GetSpaceToCreateDirectoryEntries() argument
966 const char *root = STD_SearchString(path, ":"); in FSi_GetSpaceToCreateDirectoryEntries()
967 const char *current = (root != NULL) ? (root + 1) : path; in FSi_GetSpaceToCreateDirectoryEntries()
1059 BOOL FS_HasEnoughSpaceToCreateFile(FSArchiveResource *resource, const char *path, u32 size) in FS_HasEnoughSpaceToCreateFile() argument
1065 u32 needbytes = (FSi_GetSpaceToCreateDirectoryEntries(path, bytesPerCluster) + in FS_HasEnoughSpaceToCreateFile()
1089 BOOL FS_IsArchiveReady(const char *path) in FS_IsArchiveReady() argument
1092 return FS_GetArchiveResource(path, resource); in FS_IsArchiveReady()
1200 BOOL FS_ConvertPathToFileID(FSFileID *p_fileid, const char *path) in FS_ConvertPathToFileID() argument
1204 SDK_NULL_ASSERT(path); in FS_ConvertPathToFileID()
1210 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_ConvertPathToFileID()
1306 BOOL FS_OpenFileEx(FSFile *file, const char *path, u32 mode) in FS_OpenFileEx() argument
1311 SDK_NULL_ASSERT(path); in FS_OpenFileEx()
1325 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_OpenFileEx()
1380 u32 FS_GetSeekCacheSize(const char *path) in FS_GetSeekCacheSize() argument
1385 if (FS_GetPathInfo(path, &info) && in FS_GetSeekCacheSize()
1390 if (FS_GetArchiveResource(path, &resource)) in FS_GetSeekCacheSize()
1682 BOOL FS_OpenDirectory(FSFile *file, const char *path, u32 mode) in FS_OpenDirectory() argument
1686 SDK_NULL_ASSERT(path); in FS_OpenDirectory()
1691 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_OpenDirectory()
1941 FSArchive* FSi_NormalizePathWtoW(const u16 *path, u32*baseid, u16 *relpath);
1942 FSArchive* FSi_NormalizePathWtoW(const u16 *path, u32*baseid, u16 *relpath) in FSi_NormalizePathWtoW() argument
1954 if (path[arcnameLen] == L'\0') in FSi_NormalizePathWtoW()
1958 else if (FSi_IsUnicodeSlash(path[arcnameLen])) in FSi_NormalizePathWtoW()
1962 else if (path[arcnameLen] == L':') in FSi_NormalizePathWtoW()
1968 arcname[j] = (char)path[j]; in FSi_NormalizePathWtoW()
2005 path += arcnameLen + 1 + FSi_IsUnicodeSlash(path[arcnameLen + 1]); in FSi_NormalizePathWtoW()
2008 else if (FSi_IsUnicodeSlash(*path)) in FSi_NormalizePathWtoW()
2010 path += 1; in FSi_NormalizePathWtoW()
2031 u16 c = path[curlen]; in FSi_NormalizePathWtoW()
2043 else if ((curlen == 1) && (path[0] == L'.')) in FSi_NormalizePathWtoW()
2047 else if ((curlen == 2) && (path[0] == '.') && (path[1] == '.')) in FSi_NormalizePathWtoW()
2059 path, curlen, in FSi_NormalizePathWtoW()
2072 path += curlen + 1; in FSi_NormalizePathWtoW()
2093 BOOL FS_OpenFileExW(FSFile *file, const u16 *path, u32 mode) in FS_OpenFileExW() argument
2098 SDK_NULL_ASSERT(path); in FS_OpenFileExW()
2112 FSArchive *arc = FSi_NormalizePathWtoW(path, &baseid, relpath); in FS_OpenFileExW()
2153 BOOL FS_OpenDirectoryW(FSFile *file, const u16 *path, u32 mode) in FS_OpenDirectoryW() argument
2157 SDK_NULL_ASSERT(path); in FS_OpenDirectoryW()
2162 FSArchive *arc = FSi_NormalizePathWtoW(path, &baseid, relpath); in FS_OpenDirectoryW()
2290 BOOL FS_OpenFile(FSFile *file, const char *path) in FS_OpenFile() argument
2292 return FS_OpenFileEx(file, path, FS_FILEMODE_R); in FS_OpenFile()
2333 BOOL FS_FindDir(FSFile *dir, const char *path) in FS_FindDir() argument
2335 return FS_OpenDirectory(dir, path, FS_FILEMODE_R); in FS_FindDir()
2369 BOOL FS_ChangeDir(const char *path) in FS_ChangeDir() argument
2371 return FS_SetCurrentDirectory(path); in FS_ChangeDir()
2384 FSResult FS_GetFileInfo(const char *path, FSFileInfo *info) in FS_GetFileInfo() argument
2386 return FS_GetPathInfo(path, info) ? FS_RESULT_SUCCESS : FS_GetArchiveResultCode(path); in FS_GetFileInfo()