mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
Replace most usages of IsDynamicCodeCompiled with IsDynamicCodeSupported instead.
This commit is contained in:
@@ -18,7 +18,7 @@ namespace osu.Framework.Audio.Callbacks
|
||||
|
||||
protected BassCallback()
|
||||
{
|
||||
if (!RuntimeFeature.IsDynamicCodeCompiled)
|
||||
if (!RuntimeFeature.IsDynamicCodeSupported)
|
||||
handle = new ObjectHandle<BassCallback>(this, GCHandleType.Normal);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user