コード例 #1
0
        static void LoadResources()
        {
            foreach (var file in FileLocations.GetAllSubFiles(FileLocations.GetApplicationDataDir("packages"), "*.pack"))
            {
                AssetManager.AddProvider(new PackAssetProvider(file));
            }

            foreach (var file in FileLocations.GetAllSubFiles(FileLocations.GetApplicationDataDir("packages"), "*.zip"))
            {
                AssetManager.AddProvider(new ZipPackageAssetProvider(file));
            }

            FileLocations.AddUserAndApplicationSubDirAssets("assets");
            FileLocations.AddUserAndApplicationSubDirAssets("music");

            foreach (var file in FileLocations.GetAllSubFiles(FileLocations.GetUserDataSubDir("packages"), "*.pack"))
            {
                AssetManager.AddProvider(new PackAssetProvider(file));
            }

            foreach (var file in FileLocations.GetAllSubFiles(FileLocations.GetUserDataSubDir("packages"), "*.zip"))
            {
                AssetManager.AddProvider(new ZipPackageAssetProvider(file));
            }
        }
コード例 #2
0
 static void FindPlugins()
 {
     PluginLoader.AddDir(FileLocations.GetApplicationDataDir("plugins"), true);
     PluginLoader.AddDir(FileLocations.GetUserDataSubDir("plugins"), true);
 }