Skip to content

Commit

Permalink
Merge pull request #4 from bookdude13/dev
Browse files Browse the repository at this point in the history
Add back in button to reset time
  • Loading branch information
bookdude13 authored Jan 16, 2023
2 parents 29cc55c + 05e8aa1 commit 46ab57d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Assets/Scenes/MainScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down
7 changes: 7 additions & 0 deletions Assets/Scripts/DownloadManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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<bool> DownloadSongsSinceTime(DateTimeOffset sinceTime) {
displayManager.DebugLog($"Getting maps after time {sinceTime.ToLocalTime()}...");

Expand Down
Binary file modified OVRAssetBundles/OVRMasterBundle/OVRMasterBundle
Binary file not shown.
2 changes: 1 addition & 1 deletion OVRAssetBundles/OVRMasterBundle/OVRMasterBundle.manifest
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ManifestFileVersion: 0
CRC: 3474328712
CRC: 1452989552
AssetBundleManifest:
AssetBundleInfos:
Info_0:
Expand Down
Binary file modified OVRAssetBundles/OVRMasterBundle/scene_mainscene
Binary file not shown.
4 changes: 2 additions & 2 deletions OVRAssetBundles/OVRMasterBundle/scene_mainscene.manifest
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ManifestFileVersion: 0
CRC: 1156308091
CRC: 2882445343
Hashes:
AssetFileHash:
serializedVersion: 2
Hash: 327f1bcfd0bbe27f3e3a8d2201c1706d
Hash: ae616c74e989d9d6157064f5bf20802c
TypeTreeHash:
serializedVersion: 2
Hash: e2035c4c4f0f66f38066d4508842f4d8
Expand Down
Binary file modified OVRAssetBundles/Temp/OVRMasterBundle
Binary file not shown.
2 changes: 1 addition & 1 deletion OVRAssetBundles/Temp/SceneLoadData.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1673824624
1673828421
MainScene

0 comments on commit 46ab57d

Please sign in to comment.