Example #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));
            }
        }
Example #2
0
        static void LoadMods()
        {
            if (!PreferencesManager.GetValueB(PrefNames.ModName))
            {
                return;
            }

            FileLocations.AddUserAndApplicationSubDirAssets("mods/" + PreferencesManager.Get(PrefNames.ModName));
        }