Skip to content

Commit

Permalink
Use ServiceAdministrator::LoadLibrary to load any libraries (#1748)
Browse files Browse the repository at this point in the history
Co-authored-by: HaseenaSainul <[email protected]>
  • Loading branch information
sramani-metro and HaseenaSainul authored Sep 18, 2024
1 parent 200249e commit 761d6d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/plugins/Shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ namespace PluginHost
string element;
while (all_paths->Next(element) == true) {
Core::File file(element.c_str());
if (file.Exists())
{
Core::Library resource(element.c_str());
if (file.Exists()) {

Core::Library resource = Core::ServiceAdministrator::Instance().LoadLibrary(element.c_str());
if (resource.IsLoaded())
result = Core::ServiceAdministrator::Instance().Instantiate(
resource,
Expand Down

0 comments on commit 761d6d6

Please sign in to comment.