Bug fixes #442

Merged
glencelow merged 3 commits from PlayerController into main 2023-03-25 16:11:55 +08:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 429674c16e - Show all commits

View File

@ -116,8 +116,9 @@ namespace SHADE
try
{
oss << "[EngineInterface] Loading " << Convert::ToNative(ManagedLibraryName) << ".dll";
managedLibFile = File::Open(managedLibPath, FileMode::Open, FileAccess::Read);
managedLibFile = File::Open(managedLibPath, FileMode::Open, FileAccess::Read, FileShare::Read);
scriptContext->LoadFromStream(managedLibFile);
managedLibFile->Close();
oss.str("");
oss << "[EngineInterface] Successfully loaded " << Convert::ToNative(ManagedLibraryName) << ".dll";
Debug::Log(oss.str());