Inheritance: IIl2CppPlatformProvider
Ejemplo n.º 1
0
        static public void InvokeFromBuildPlayer(BuildTarget buildTarget, RuntimeClassRegistry usedClasses, ManagedStrippingLevel managedStrippingLevel, BuildReport report)
        {
            var stagingAreaData = Paths.Combine("Temp", "StagingArea", "Data");

            var platformProvider = new BaseIl2CppPlatformProvider(buildTarget, Path.Combine(stagingAreaData, "Libraries"), report);

            var managedAssemblyFolderPath = Path.GetFullPath(Path.Combine(stagingAreaData, "Managed"));

            AssemblyStripper.StripAssemblies(managedAssemblyFolderPath, platformProvider, usedClasses, managedStrippingLevel);
        }
Ejemplo n.º 2
0
        protected string GetFileInPackageOrDefault(string path)
        {
            Unity.DataContract.PackageInfo packageInfo = BaseIl2CppPlatformProvider.FindIl2CppPackage();
            if (packageInfo == null)
            {
                return(Path.Combine(this.libraryFolder, path));
            }
            string text = Path.Combine(packageInfo.basePath, path);

            return(File.Exists(text) ? text : Path.Combine(this.libraryFolder, path));
        }
Ejemplo n.º 3
0
        public static void InvokeFromBuildPlayer(BuildTarget buildTarget, RuntimeClassRegistry usedClasses)
        {
            string text = Paths.Combine(new string[]
            {
                "Temp",
                "StagingArea",
                "Data"
            });
            BaseIl2CppPlatformProvider platformProvider = new BaseIl2CppPlatformProvider(buildTarget, Path.Combine(text, "Libraries"));

            AssemblyStripper.StripAssemblies(text, platformProvider, usedClasses);
        }
        protected string GetFolderInPackageOrDefault(string path)
        {
            Unity.DataContract.PackageInfo packageInfo = BaseIl2CppPlatformProvider.FindIl2CppPackage();
            string result;

            if (packageInfo == null)
            {
                result = Path.Combine(this.libraryFolder, path);
            }
            else
            {
                string text = Path.Combine(packageInfo.basePath, path);
                result = (Directory.Exists(text) ? text : Path.Combine(this.libraryFolder, path));
            }
            return(result);
        }
Ejemplo n.º 5
0
        protected string GetFileInPackageOrDefault(string path)
        {
            PackageInfo il2CppPackage = BaseIl2CppPlatformProvider.FindIl2CppPackage();

            if (PackageInfo.op_Equality(il2CppPackage, (PackageInfo)null))
            {
                return(Path.Combine(this.libraryFolder, path));
            }
            string path1 = Path.Combine((string)il2CppPackage.basePath, path);

            if (!File.Exists(path1))
            {
                return(Path.Combine(this.libraryFolder, path));
            }
            return(path1);
        }