Skip to content

Commit

Permalink
Merge pull request #23 from o-tr/master
Browse files Browse the repository at this point in the history
v0.2.19をリリース
  • Loading branch information
o-tr authored Nov 29, 2024
2 parents 26b2485 + f7ab72b commit 3618f55
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 407 deletions.
Binary file modified Assets/Textures/SplashScreen/ImageSlide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Assets/Textures/SplashScreen/ImageSlideViewer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 5 additions & 8 deletions Runtime/jp.ootr.ImageSlide/Scripts/22_LogicQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public string[][] FileNames
}

private bool _isInitialized;
private bool _isSyncAllPending;

public string[] GetSources()
{
Expand Down Expand Up @@ -395,21 +394,20 @@ public void OnSyncAllRequested()

private void RequestSyncAll()
{
if (_isSyncAllPending)
{
ConsoleDebug("skip request sync all because already pending", _logicQueuePrefix);
return;
}
var dic = new DataDictionary();
dic.SetValue("type", (int)QueueType.RequestSyncAll);
if (!VRCJson.TrySerializeToJson(dic, JsonExportType.Minify, out var json))
{
ConsoleError($"failed to serialize request sync all json: {json}", _logicQueuePrefix);
return;
}
if (_queue.Has(json.String))
{
ConsoleDebug("skip request sync all because already pending", _logicQueuePrefix);
return;
}

AddQueue(json.String);
_isSyncAllPending = true;
if (_isProcessing) return;
_isProcessing = true;
ProcessQueue();
Expand Down Expand Up @@ -437,7 +435,6 @@ private void DoSyncAll()
}

AddSyncQueue(json.String);
_isSyncAllPending = false;
ProcessQueue();
}

Expand Down
Loading

0 comments on commit 3618f55

Please sign in to comment.