@@ -91,7 +91,7 @@ void LoadAllPlugins()
9191 }
9292 }
9393
94- Logging::SetLastMessage (std::format (" Found {} plugins:" , numPlugins));
94+ Logging::PrintMessage (std::format (" Found {} plugins:" , numPlugins));
9595
9696 dirIterator = std::filesystem::directory_iterator (" Plugins" );
9797
@@ -109,10 +109,10 @@ void LoadAllPlugins()
109109 auto & [info, handle] = plugin;
110110 plugins.push_back (handle);
111111
112- Logging::SetLastMessage (std::format (" Loaded plugin {} ver {} handle 0x{:x}" , info.Name , info.Version , reinterpret_cast <intptr_t >(handle)));
112+ Logging::PrintMessage (std::format (" Loaded plugin {} ver {} handle 0x{:x}" , info.Name , info.Version , reinterpret_cast <intptr_t >(handle)));
113113
114114 auto numLoadedObjects = Plugins::LoadCustomObjectsFromLibHandle (handle);
115- Logging::SetLastMessage (std::format (" Loaded {} custom object types from plugin {}" , numLoadedObjects, info.Name ));
115+ Logging::PrintMessage (std::format (" Loaded {} custom object types from plugin {}" , numLoadedObjects, info.Name ));
116116
117117 return plugin;
118118 }
@@ -134,7 +134,7 @@ void LoadAllPlugins()
134134 break ;
135135 }
136136
137- Logging::SetLastWarning (std::format (" Failed to load plugin at {}!\r\n {}" , file.string (), msg));
137+ Logging::PrintWarning (std::format (" Failed to load plugin at {}!\r\n {}" , file.string (), msg));
138138 return std::unexpected (err);
139139 }
140140 );
@@ -205,7 +205,7 @@ int __stdcall WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance
205205 auto f = Native::GetFunctionFromLibrary<Plugins::PluginUnload>(plugin, " PluginUnload" );
206206 if (f != nullptr )
207207 {
208- if (!f ()) Logging::SetLastMessage (std::format (" PluginUnload() returned false! Handle {:x}" , reinterpret_cast <intptr_t >(plugin)));
208+ if (!f ()) Logging::PrintMessage (std::format (" PluginUnload() returned false! Handle {:x}" , reinterpret_cast <intptr_t >(plugin)));
209209 }
210210 }
211211
0 commit comments