Skip to content

Commit

Permalink
disable remote downloading for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeroluna committed Jan 17, 2025
1 parent e20c93d commit 07f8ea9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Vivify/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
}
15 changes: 9 additions & 6 deletions Vivify/Controllers/AssetBundleDownloadViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public bool Init(StartStandardLevelParameters standardLevelParameters)
levelCustomData.GetRequired<CustomData>(ASSET_BUNDLE).GetRequired<uint>(BUNDLE_CHECKSUM);
_doAbort = false;
_downloadFinished = false;
if (_config.AllowDownload)
/*if (_config.AllowDownload)
{
_coroutineBastard.StartCoroutine(
DownloadAndSave(
Expand All @@ -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;
}
Expand All @@ -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)
{
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 07f8ea9

Please sign in to comment.