forked from MoonsideGames/MoonWorks
Ignore dllmap logic when running under NativeAOT (#23)
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com> Reviewed-on: MoonsideGames/MoonWorks#23 Co-authored-by: TheSpydog <thespydog@noreply.example.org> Co-committed-by: TheSpydog <thespydog@noreply.example.org>custom_video_shaders
parent
b380707462
commit
ebfd4fd457
|
@ -84,6 +84,12 @@ namespace MoonWorks
|
||||||
[ModuleInitializer]
|
[ModuleInitializer]
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
|
// Ignore NativeAOT platforms since they don't perform dynamic loading.
|
||||||
|
if (!RuntimeFeature.IsDynamicCodeSupported)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Get the platform and architecture
|
// Get the platform and architecture
|
||||||
string os = GetPlatformName();
|
string os = GetPlatformName();
|
||||||
string cpu = RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
|
string cpu = RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
|
||||||
|
|
Loading…
Reference in New Issue