Skip to content

Commit e538e8b

Browse files
committed
V5.0.7
1 parent 3c1fb5d commit e538e8b

File tree

24 files changed

+49
-49
lines changed

24 files changed

+49
-49
lines changed

BeatSaberPlus/CP_SDK/Chat/Services/Twitch/7TVDataProvider.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public async Task TryRequestResources(string p_Category, string p_Token)
7272

7373
try
7474
{
75-
ChatPlexSDK.Logger.Debug($"Requesting 7TV {(l_IsGlobal ? "global " : "")}emotes{(l_IsGlobal ? "." : $" for channel {p_Category}")}.");
75+
ChatPlexSDK.Logger.Debug($"Requesting 7TV {(l_IsGlobal ? "global " : "")}emotes{(l_IsGlobal ? "." : $" for channel {p_Category}")}. " + (l_IsGlobal ? "https://api.7tv.app/v2/emotes/global" : $"https://api.7tv.app/v2/users/{p_Category}/emotes"));
7676

7777
using (HttpRequestMessage msg = new HttpRequestMessage(HttpMethod.Get, l_IsGlobal ? "https://api.7tv.app/v2/emotes/global" : $"https://api.7tv.app/v2/users/{p_Category}/emotes"))
7878
{
@@ -85,15 +85,15 @@ public async Task TryRequestResources(string p_Category, string p_Token)
8585
int l_Count = 0;
8686
foreach (JSONObject l_Object in l_JSON.AsArray)
8787
{
88-
string l_URI = $"https://cdn.7tv.app/emote/{l_Object["id"].Value}/2x";
89-
string l_ID = l_IsGlobal ? l_Object["name"].Value : $"{p_Category}_{l_Object["name"].Value}";
88+
string l_URI = l_Object["urls"].AsArray.Count >= 2 ? l_Object["urls"].AsArray[2].AsArray[1] : l_Object["urls"].AsArray[0].AsArray[0];
89+
string l_ID = l_IsGlobal ? l_Object["name"].Value : $"{p_Category}_{l_Object["name"].Value}";
9090

9191
Resources.TryAdd(l_ID, new ChatResourceData()
9292
{
93-
Uri = l_URI,
94-
Animation = Animation.EAnimationType.AUTODETECT,
95-
Category = EChatResourceCategory.Emote,
96-
Type = l_IsGlobal ? "7TVGlobalEmote" : "7TVChannelEmote"
93+
Uri = l_URI,
94+
Animation = Animation.EAnimationType.AUTODETECT,
95+
Category = EChatResourceCategory.Emote,
96+
Type = l_IsGlobal ? "7TVGlobalEmote" : "7TVChannelEmote"
9797
});
9898
l_Count++;
9999
}

BeatSaberPlus/CP_SDK/Network/WebClient_Unity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private IEnumerator Coroutine_DownloadAsync(string p_URL, CancellationToken p_To
183183
}
184184
}
185185

186-
Unity.MTThreadInvoker.EnqueueOnThread(() => p_Callback(null));
186+
Unity.MTThreadInvoker.EnqueueOnThread(() => p_Callback?.Invoke(null));
187187
}
188188

189189
////////////////////////////////////////////////////////////////////////////

BeatSaberPlus/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("5.0.6")]
36-
[assembly: AssemblyFileVersion("5.0.6")]
35+
[assembly: AssemblyVersion("5.0.7")]
36+
[assembly: AssemblyFileVersion("5.0.7")]

BeatSaberPlus/UI/InfoView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal class InfoView : SDK.UI.ResourceViewController<InfoView>
1515
[UIValue("Line1")]
1616
private readonly string m_Line1 = "<u><b>Welcome to BeatSaberPlus by HardCPP#1985</b></u>";
1717
[UIValue("Line2")]
18-
private readonly string m_Line2 = "Version 5.0.6";
18+
private readonly string m_Line2 = "Version 5.0.7";
1919
[UIValue("Line3")]
2020
private readonly string m_Line3 = " ";
2121
[UIValue("Line4")]

BeatSaberPlus/UI/MainViewFlowCoordinator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class MainViewFlowCoordinator : SDK.UI.ViewFlowCoordinator<MainViewFlowCo
88
/// <summary>
99
/// Title
1010
/// </summary>
11-
public override string Title => "Beat Saber Plus V5.0.6";
11+
public override string Title => "Beat Saber Plus V5.0.7";
1212

1313
////////////////////////////////////////////////////////////////////////////
1414
////////////////////////////////////////////////////////////////////////////

BeatSaberPlus/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"id": "BeatSaberPlusCORE",
44
"name": "BeatSaberPlus",
55
"author": "HardCPP#1985",
6-
"version": "5.0.6",
6+
"version": "5.0.7",
77
"description": "",
88
"gameVersion": "1.25.0",
99
"dependsOn": {

Modules/BeatSaberPlus_Chat/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("5.0.6")]
36-
[assembly: AssemblyFileVersion("5.0.6")]
35+
[assembly: AssemblyVersion("5.0.7")]
36+
[assembly: AssemblyFileVersion("5.0.7")]

Modules/BeatSaberPlus_Chat/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"id": "BeatSaberPlus_Chat",
44
"name": "BeatSaberPlus_Chat",
55
"author": "HardCPP#1985",
6-
"version": "5.0.6",
6+
"version": "5.0.7",
77
"description": "",
88
"gameVersion": "1.25.0",
99
"dependsOn": {
1010
"BSIPA": "^4.0.1",
1111
"BeatSaberMarkupLanguage": "^1.3.4",
12-
"BeatSaberPlusCORE": "^5.0.6"
12+
"BeatSaberPlusCORE": "^5.0.7"
1313
},
1414
"links": {
1515
"project-home": "https://discord.chatplex.org",

Modules/BeatSaberPlus_ChatEmoteRain/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("5.0.6")]
36-
[assembly: AssemblyFileVersion("5.0.6")]
35+
[assembly: AssemblyVersion("5.0.7")]
36+
[assembly: AssemblyFileVersion("5.0.7")]

Modules/BeatSaberPlus_ChatEmoteRain/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"id": "BeatSaberPlus_ChatEmoteRain",
44
"name": "BeatSaberPlus_ChatEmoteRain",
55
"author": "HardCPP#1985",
6-
"version": "5.0.6",
6+
"version": "5.0.7",
77
"description": "",
88
"gameVersion": "1.25.0",
99
"dependsOn": {
1010
"BSIPA": "^4.0.1",
1111
"BeatSaberMarkupLanguage": "^1.3.4",
12-
"BeatSaberPlusCORE": "^5.0.6"
12+
"BeatSaberPlusCORE": "^5.0.7"
1313
},
1414
"links": {
1515
"project-home": "https://discord.chatplex.org",

0 commit comments

Comments
 (0)