Add macOS build for dotnet7

This commit is contained in:
Wojtek Figat
2023-02-19 13:31:57 +01:00
parent b44c7ab32c
commit 2c1409c2a4
6 changed files with 75 additions and 26 deletions

View File

@@ -119,6 +119,7 @@ void MCore::UnloadDomain(const MString& domainName)
#if USE_NETCORE
bool MCore::LoadEngine()
{
PROFILE_CPU();
const String csharpLibraryPath = Globals::BinariesFolder / TEXT("FlaxEngine.CSharp.dll");
const String csharpRuntimeConfigPath = Globals::BinariesFolder / TEXT("FlaxEngine.CSharp.runtimeconfig.json");
if (!FileSystem::FileExists(csharpLibraryPath))
@@ -152,6 +153,9 @@ bool MCore::LoadEngine()
void MCore::UnloadEngine()
{
if (!MRootDomain)
return;
PROFILE_CPU();
CoreCLR::CallStaticMethodByName<void>(TEXT("Exit"));
MDomains.ClearDelete();
MRootDomain = nullptr;