Skip to content

Commit c80ea93

Browse files
committed
Merge branch 'dev'
2 parents 664858a + 2004871 commit c80ea93

File tree

134 files changed

+3560
-3790
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+3560
-3790
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ obj/
33
/build
44
/releases
55
/publish
6-
/publish.sh
76
/packages/
87
riderModule.iml
98
/_ReSharper.Caches/

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ copy of the Program in return for a fee.
620620

621621
END OF TERMS AND CONDITIONS
622622

623-
Copyright (C) 2022-2024 VolcanicArts
623+
Copyright (C) 2022-2025 VolcanicArts
624624

625625
This program is free software: you can redistribute it and/or modify
626626
it under the terms of the GNU General Public License as published by
@@ -633,4 +633,4 @@ copy of the Program in return for a fee.
633633
GNU General Public License for more details.
634634

635635
You should have received a copy of the GNU General Public License
636-
along with this program. If not, see <https://www.gnu.org/licenses/>.
636+
along with this program. If not, see <https://www.gnu.org/licenses/>.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Copyright (c) VolcanicArts. Licensed under the GPL-3.0 License.
2+
// See the LICENSE file in the repository root for full license text.
3+
4+
using System;
5+
using System.Threading.Tasks;
6+
7+
namespace VRCOSC.App.Actions;
8+
9+
public class CallbackProgressAction : ProgressAction
10+
{
11+
public override string Title { get; }
12+
private readonly Action? callback;
13+
private readonly Func<Task?>? taskCallback;
14+
15+
public CallbackProgressAction(string title, Action callback)
16+
{
17+
Title = title;
18+
this.callback = callback;
19+
}
20+
21+
public CallbackProgressAction(string title, Func<Task?> callback)
22+
{
23+
Title = title;
24+
taskCallback = callback;
25+
}
26+
27+
protected override async Task Perform()
28+
{
29+
callback?.Invoke();
30+
await (taskCallback?.Invoke() ?? Task.CompletedTask);
31+
}
32+
}

VRCOSC.App/Actions/CompositeProgressAction.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.

VRCOSC.App/Actions/DynamicChildProgressAction.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

VRCOSC.App/Actions/DynamicProgressAction.cs

Lines changed: 0 additions & 43 deletions
This file was deleted.

VRCOSC.App/Actions/Files/FileDownloadAction.cs renamed to VRCOSC.App/Actions/FileDownloadAction.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@
55
using System.Threading.Tasks;
66
using VRCOSC.App.Utils;
77

8-
namespace VRCOSC.App.Actions.Files;
8+
namespace VRCOSC.App.Actions;
99

1010
public class FileDownloadAction : ProgressAction
1111
{
1212
private readonly Storage targetStorage;
1313
private readonly Uri url;
1414
private readonly string assetName;
1515

16-
private float localProgress;
17-
1816
public override string Title => $"Downloading {assetName}";
17+
public override bool UseProgressBar => true;
1918

2019
public FileDownloadAction(Uri url, Storage targetStorage, string assetName)
2120
{
@@ -26,14 +25,8 @@ public FileDownloadAction(Uri url, Storage targetStorage, string assetName)
2625

2726
protected override async Task Perform()
2827
{
29-
localProgress = 0f;
30-
3128
var fileDownload = new FileDownload();
32-
fileDownload.ProgressChanged += p => localProgress = p;
29+
fileDownload.ProgressChanged += p => OnProgressChanged?.Invoke(p);
3330
await fileDownload.DownloadFileAsync(url, targetStorage.GetFullPath(assetName, true));
34-
35-
localProgress = 1f;
3631
}
37-
38-
public override float GetProgress() => localProgress;
3932
}

VRCOSC.App/Actions/Packages/PackageInstallAction.cs

Lines changed: 0 additions & 95 deletions
This file was deleted.

VRCOSC.App/Actions/Packages/PackageRefreshAction.cs

Lines changed: 0 additions & 50 deletions
This file was deleted.

VRCOSC.App/Actions/Packages/PackageUninstallAction.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)