Esempio n. 1
0
            protected override string GetBasePath(FileLayout layout)
            {
                BinaryAssetFolderInfo info = platform.GetBinaryAssetFolder(platform.GetBuildTargets().First());

                if (layout < info.oldestLayout)
                {
                    return(null);
                }

                switch (layout)
                {
                case FileLayout.Release_1_10:
                    return("Plugins/FMOD/Wrapper");

                case FileLayout.Release_2_0:
                    return("Plugins/FMOD/src/Runtime/wrapper");

                case FileLayout.Release_2_1:
                case FileLayout.Release_2_2:
                    return($"{RuntimeUtils.PluginBasePath}/platforms/{info.baseName}/src");

                default:
                    throw new ArgumentException("Unrecognised file layout: " + layout);
                }
            }
Esempio n. 2
0
            protected override string GetBasePath(FileLayout layout)
            {
                BinaryAssetFolderInfo info = platform.GetBinaryAssetFolder(buildTarget);

                if (layout < info.oldestLayout)
                {
                    return(null);
                }

                switch (layout)
                {
                case FileLayout.Release_1_10:
                    return(info.path_1_10);

                case FileLayout.Release_2_0:
                    return(string.Format("Plugins/FMOD/lib/{0}", info.baseName));

                case FileLayout.Release_2_1:
                case FileLayout.Release_2_2:
                    return($"{RuntimeUtils.PluginBasePath}/platforms/{info.baseName}/lib");

                default:
                    throw new ArgumentException("Unrecognised file layout: " + layout);
                }
            }