diff --git a/Vivify/Config.cs b/Vivify/Config.cs index 057da1a..4ec8d98 100644 --- a/Vivify/Config.cs +++ b/Vivify/Config.cs @@ -13,5 +13,5 @@ public class Config public bool AllowDownload { get; set; } - public string BundleRepository { get; set; } = "https://repo.totalbs.dev/bundles/"; + ////public string BundleRepository { get; set; } = "https://repo.totalbs.dev/bundles/"; } diff --git a/Vivify/Controllers/AssetBundleDownloadViewController.cs b/Vivify/Controllers/AssetBundleDownloadViewController.cs index a99b4fc..79cb5cd 100644 --- a/Vivify/Controllers/AssetBundleDownloadViewController.cs +++ b/Vivify/Controllers/AssetBundleDownloadViewController.cs @@ -124,7 +124,7 @@ public bool Init(StartStandardLevelParameters standardLevelParameters) levelCustomData.GetRequired(ASSET_BUNDLE).GetRequired(BUNDLE_CHECKSUM); _doAbort = false; _downloadFinished = false; - if (_config.AllowDownload) + /*if (_config.AllowDownload) { _coroutineBastard.StartCoroutine( DownloadAndSave( @@ -135,7 +135,10 @@ public bool Init(StartStandardLevelParameters standardLevelParameters) { _downloadPath = path; _downloadChecksum = assetBundleChecksum; - } + }*/ + + _newView = View.Error; + _lastError = "Asset downloading not yet implemented,\nlook out for a newer version of Vivify!"; return true; } @@ -151,7 +154,7 @@ private void Construct(SiraLog log, Config config, CoroutineBastard coroutineBas } // TODO: figure out a way to resolve the fact that multiplayer does NOT have enough time to download bundles - private IEnumerator DownloadAndSave( + /*private IEnumerator DownloadAndSave( string savePath, uint checksum) { @@ -195,20 +198,20 @@ private IEnumerator DownloadAndSave( File.WriteAllBytes(savePath, www.downloadHandler.data); _log.Debug($"Successfully downloaded bundle to [{savePath}]."); _downloadFinished = true; - } + }*/ [UsedImplicitly] [UIAction("accept-click")] private void OnAcceptClick() { _config.AllowDownload = true; - if (_downloadPath != null) + /*if (_downloadPath != null) { _coroutineBastard.StartCoroutine( DownloadAndSave( _downloadPath, _downloadChecksum)); - } + }*/ } [UsedImplicitly]