From 05e8aa118322ef968499d651da2c32bf862456bf Mon Sep 17 00:00:00 2001 From: Ryan Fredlund Date: Mon, 16 Jan 2023 00:22:21 -0600 Subject: [PATCH] Add back in button to reset time. Doesn't take too long if the local db is up to date --- Assets/Scenes/MainScene.unity | 6 +++--- Assets/Scripts/DownloadManager.cs | 7 +++++++ .../OVRMasterBundle/OVRMasterBundle | Bin 4928 -> 4928 bytes .../OVRMasterBundle/OVRMasterBundle.manifest | 2 +- .../OVRMasterBundle/scene_mainscene | Bin 504016 -> 504016 bytes .../OVRMasterBundle/scene_mainscene.manifest | 4 ++-- OVRAssetBundles/Temp/OVRMasterBundle | Bin 4928 -> 4928 bytes OVRAssetBundles/Temp/SceneLoadData.txt | 2 +- 8 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Assets/Scenes/MainScene.unity b/Assets/Scenes/MainScene.unity index 1f758f74..8abe1381 100644 --- a/Assets/Scenes/MainScene.unity +++ b/Assets/Scenes/MainScene.unity @@ -1389,7 +1389,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &579242776 RectTransform: m_ObjectHideFlags: 0 @@ -1457,7 +1457,7 @@ MonoBehaviour: m_Calls: - m_Target: {fileID: 332003139} m_TargetAssemblyTypeName: DownloadManager, Assembly-CSharp - m_MethodName: ToggleLastFetchTime + m_MethodName: ResetFetchTime m_Mode: 1 m_Arguments: m_ObjectArgument: {fileID: 0} @@ -2266,7 +2266,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: Change Fetch Time + m_text: Reset Fetch Time m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} diff --git a/Assets/Scripts/DownloadManager.cs b/Assets/Scripts/DownloadManager.cs index 59780cea..a21c1473 100644 --- a/Assets/Scripts/DownloadManager.cs +++ b/Assets/Scripts/DownloadManager.cs @@ -38,6 +38,7 @@ public async void StartDownloadingLatest() { displayManager.EnableFetchingLatest(); } + /// Debug method for cycling through different fetch times private int resetTick = 0; public void ToggleLastFetchTime() { if (resetTick == 0) { @@ -58,6 +59,12 @@ public void ToggleLastFetchTime() { displayManager.UpdateLastFetchTime(); } + /// Reset fetch time to epoch, so all can be downloaded again if necessary + public void ResetFetchTime() { + Preferences.SetLastDownloadedTime(DateTimeOffset.FromUnixTimeSeconds(0).LocalDateTime); + displayManager.UpdateLastFetchTime(); + } + private async Task DownloadSongsSinceTime(DateTimeOffset sinceTime) { displayManager.DebugLog($"Getting maps after time {sinceTime.ToLocalTime()}..."); diff --git a/OVRAssetBundles/OVRMasterBundle/OVRMasterBundle b/OVRAssetBundles/OVRMasterBundle/OVRMasterBundle index 1ee70d0352b92333cf0aefbcefd024ded814f35c..3f468e6461dc79520b8aff2a6225e89f701daa94 100644 GIT binary patch delta 29 lcmX@0c0g@|ijcs%#GI0soj0$E7NmULuh5{g*+htk5dg(C3_<_^ delta 29 lcmX@0c0g@|ijaU&z4ZADyC2otS@kM09xTY+Y$C+N2mrH!3l;zX diff --git a/OVRAssetBundles/OVRMasterBundle/OVRMasterBundle.manifest b/OVRAssetBundles/OVRMasterBundle/OVRMasterBundle.manifest index 427e4b62..03cb73f2 100644 --- a/OVRAssetBundles/OVRMasterBundle/OVRMasterBundle.manifest +++ b/OVRAssetBundles/OVRMasterBundle/OVRMasterBundle.manifest @@ -1,5 +1,5 @@ ManifestFileVersion: 0 -CRC: 3474328712 +CRC: 1452989552 AssetBundleManifest: AssetBundleInfos: Info_0: diff --git a/OVRAssetBundles/OVRMasterBundle/scene_mainscene b/OVRAssetBundles/OVRMasterBundle/scene_mainscene index c6b9052a475859b3bb7d7f79bb65ac9a4d63907e..1c7320895bd5fb2d7ad6c2af0372226b80bc5f81 100644 GIT binary patch delta 131 zcmcccQ0~G*xrP?T7N!>F7M3lncaAZ#Y`=Sq^*bZuk@l-6Shrt2!KTQ?$hiIcCANc` zMFbca7=luZQ%e-wQcIFE6hbm{Q@3AeW1qt~{ecf7%k+XaMz-xm9qh}*g!y1f!74!t b8K&#cXZM}1kjBn3eal>Sf$cr>*F7M3lncaAY~Y`=Sq^*bZuiT0}}Shrt2!KTQ?$gutUCANc` zMFklc7@RW_^U_ll+)_)DGZaEHb5o};tY$wvy`X{JV_F}3#B_m1cAM!1ZH#Q&i#phs niHQpX^@QZ7r{|>lBo>!|wSjec&tUhRzGW`E!1kW`>@I=;7X37M diff --git a/OVRAssetBundles/OVRMasterBundle/scene_mainscene.manifest b/OVRAssetBundles/OVRMasterBundle/scene_mainscene.manifest index f6a41222..388d13e5 100644 --- a/OVRAssetBundles/OVRMasterBundle/scene_mainscene.manifest +++ b/OVRAssetBundles/OVRMasterBundle/scene_mainscene.manifest @@ -1,9 +1,9 @@ ManifestFileVersion: 0 -CRC: 1156308091 +CRC: 2882445343 Hashes: AssetFileHash: serializedVersion: 2 - Hash: 327f1bcfd0bbe27f3e3a8d2201c1706d + Hash: ae616c74e989d9d6157064f5bf20802c TypeTreeHash: serializedVersion: 2 Hash: e2035c4c4f0f66f38066d4508842f4d8 diff --git a/OVRAssetBundles/Temp/OVRMasterBundle b/OVRAssetBundles/Temp/OVRMasterBundle index 1ee70d0352b92333cf0aefbcefd024ded814f35c..3f468e6461dc79520b8aff2a6225e89f701daa94 100644 GIT binary patch delta 29 lcmX@0c0g@|ijcs%#GI0soj0$E7NmULuh5{g*+htk5dg(C3_<_^ delta 29 lcmX@0c0g@|ijaU&z4ZADyC2otS@kM09xTY+Y$C+N2mrH!3l;zX diff --git a/OVRAssetBundles/Temp/SceneLoadData.txt b/OVRAssetBundles/Temp/SceneLoadData.txt index f6a5555b..d0b715b5 100644 --- a/OVRAssetBundles/Temp/SceneLoadData.txt +++ b/OVRAssetBundles/Temp/SceneLoadData.txt @@ -1,2 +1,2 @@ -1673824624 +1673828421 MainScene