GetHashByFileDataId() public method

public GetHashByFileDataId ( int fileDataId ) : ulong
fileDataId int
return ulong
Ejemplo n.º 1
0
        public override bool FileExists(int fileDataId)
        {
            WowRootHandler rh = Root as WowRootHandler;

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

            return(FileExists(rh.GetHashByFileDataId(fileDataId)));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        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);
        }