Replace most usages of IsDynamicCodeCompiled with IsDynamicCodeSupported instead.

This commit is contained in:
Salman Ahmed
2023-07-10 05:39:02 +03:00
parent 99ff58242c
commit 42bb904226
3 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ namespace osu.Framework.Audio.Callbacks
protected BassCallback()
{
if (!RuntimeFeature.IsDynamicCodeCompiled)
if (!RuntimeFeature.IsDynamicCodeSupported)
handle = new ObjectHandle<BassCallback>(this, GCHandleType.Normal);
}

View File

@@ -41,14 +41,14 @@ namespace osu.Framework.Audio.Callbacks
public FileCallbacks(IFileProcedures implementation)
{
Callbacks = RuntimeFeature.IsDynamicCodeCompiled ? instanceProcedures : static_procedures;
Callbacks = RuntimeFeature.IsDynamicCodeSupported ? instanceProcedures : static_procedures;
this.implementation = implementation;
procedures = null;
}
public FileCallbacks(FileProcedures procedures)
{
Callbacks = RuntimeFeature.IsDynamicCodeCompiled ? instanceProcedures : static_procedures;
Callbacks = RuntimeFeature.IsDynamicCodeSupported ? instanceProcedures : static_procedures;
this.procedures = procedures;
implementation = null;
}

View File

@@ -14,7 +14,7 @@ namespace osu.Framework.Audio.Callbacks
/// </summary>
public class SyncCallback : BassCallback
{
public SyncProcedure Callback => RuntimeFeature.IsDynamicCodeCompiled ? Sync : syncCallback;
public SyncProcedure Callback => RuntimeFeature.IsDynamicCodeSupported ? Sync : syncCallback;
public readonly SyncProcedure Sync;