Core/PluginLoader: Add [[nodiscard]] qualifier to Load function

This commit is contained in:
SirLynix
2024-02-07 15:51:07 +01:00
parent b889c992ea
commit 8a5e5f7643

View File

@@ -28,7 +28,7 @@ namespace Nz
void AddSearchDirectory(const std::filesystem::path& directoryPath); void AddSearchDirectory(const std::filesystem::path& directoryPath);
template<typename T> Plugin<T> Load(bool activate = true); template<typename T> [[nodiscard]] Plugin<T> Load(bool activate = true);
#ifndef NAZARA_PLUGINS_STATIC #ifndef NAZARA_PLUGINS_STATIC
GenericPlugin Load(const std::filesystem::path& pluginPath, bool activate = true); GenericPlugin Load(const std::filesystem::path& pluginPath, bool activate = true);
#endif #endif