Esempio n. 1
0
        private void TryUpringAddGUID(Upbring upbring, string file, Upset package, InstallSpecType type, string destination)
        {
            if (file.EndsWith(".meta"))
            {
                return;
            }
            string metaPath = Path.Combine(destination, file + ".meta");

            if (!File.Exists(metaPath))
            {
                upbring.AddLocation(package, type, Path.Combine(destination, file));
                return;
            }
            string guid = LoadGUID(metaPath);

            upbring.AddGUID(package, type, guid);
        }