Exemple #1
0
        internal FileSystemEntry GetMapEntry(string mapPath)
        {
            if (UserDataFileSystem is not null)
            {
                var mapEntry = UserDataFileSystem.GetFile(mapPath);
                if (mapEntry is not null)
                {
                    return(mapEntry);
                }
            }

            return(FileSystem.GetFile(mapPath));
        }
Exemple #2
0
        internal FileSystemEntry GetMapEntry(string mapPath)
        {
            var normalizedPath = FileSystem.NormalizeFilePath(mapPath);

            if (UserDataFileSystem != null && normalizedPath.StartsWith(UserDataFileSystem.RootDirectory))
            {
                mapPath = mapPath.Substring(UserDataFileSystem.RootDirectory.Length + 1);
                return(UserDataFileSystem.GetFile(mapPath));
            }
            else
            {
                return(FileSystem.GetFile(mapPath));
            }
        }