GetHashByFileDataId() public méthode

public GetHashByFileDataId ( int fileDataId ) : ulong
fileDataId int
Résultat ulong
        public override bool FileExists(int fileDataId)
        {
            WowRootHandler rh = Root as WowRootHandler;

            if (rh == null)
            {
                return(false);
            }

            return(FileExists(rh.GetHashByFileDataId(fileDataId)));
        }
Exemple #2
0
        public bool FileExists(int fileDataId)
        {
            WowRootHandler rh = Root as WowRootHandler;

            if (rh != null)
            {
                var hash = rh.GetHashByFileDataId(fileDataId);

                return(FileExists(hash));
            }

            return(false);
        }
        public override Stream OpenFile(int fileDataId)
        {
            WowRootHandler rh = Root as WowRootHandler;

            if (rh != null)
            {
                return(OpenFile(rh.GetHashByFileDataId(fileDataId)));
            }

            if (CASCConfig.ThrowOnFileNotFound)
            {
                throw new FileNotFoundException("FileData: " + fileDataId.ToString());
            }
            return(null);
        }