Exemplo n.º 1
0
        private bool ReadVersion(FArchive reader, out ELocMetaVersion version)
        {
            reader.Read(out Guid MagicNumber);
            if (MagicNumber != LocMetaMagic)
            {
                version = ELocMetaVersion.Initial;
                return(false);
            }
            reader.ReadUnsafe(out version);

            reader.AssetVersion = (int)version;
            return(true);
        }
Exemplo n.º 2
0
        private bool ReadVersion(FArchive reader, out ELocMetaVersion version)
        {
            Guid MagicNumber = default;

            reader.Read(ref MagicNumber);
            version = ELocMetaVersion.Initial;
            if (MagicNumber == LocMetaMagic)
            {
                reader.ReadUnsafe(ref version);
                reader.AssetVersion = (int)version;
                return(true);
            }
            return(false);
        }