mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 10:47:22 +09:00
Update usages of SupportsJIT
in line with framework changes
This commit is contained in:
parent
660cc72f2a
commit
5fbd4ad3b4
@ -4,6 +4,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.SignalR.Client;
|
using Microsoft.AspNetCore.SignalR.Client;
|
||||||
@ -73,7 +74,7 @@ namespace osu.Game.Online
|
|||||||
options.Headers.Add("OsuVersionHash", versionHash);
|
options.Headers.Add("OsuVersionHash", versionHash);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (RuntimeInfo.SupportsJIT && preferMessagePack)
|
if (RuntimeFeature.IsDynamicCodeCompiled && preferMessagePack)
|
||||||
{
|
{
|
||||||
builder.AddMessagePackProtocol(options =>
|
builder.AddMessagePackProtocol(options =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user