GetHashByFileDataId() public method

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

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

            return(FileExists(rh.GetHashByFileDataId(fileDataId)));
        }
Beispiel #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);
        }