PluginManager::AddDirectory no longer returns bool
Former-commit-id: a5994918636765a52ca1fc79617d12eefec2c914
This commit is contained in:
@@ -21,7 +21,7 @@ class NAZARA_API NzPluginManager
|
||||
NzPluginManager() = delete;
|
||||
~NzPluginManager() = delete;
|
||||
|
||||
static bool AddDirectory(const NzString& directoryPath);
|
||||
static void AddDirectory(const NzString& directoryPath);
|
||||
|
||||
static bool Initialize();
|
||||
|
||||
|
||||
@@ -22,17 +22,15 @@ namespace
|
||||
};
|
||||
}
|
||||
|
||||
bool NzPluginManager::AddDirectory(const NzString& directoryPath)
|
||||
void NzPluginManager::AddDirectory(const NzString& directoryPath)
|
||||
{
|
||||
if (!Initialize())
|
||||
{
|
||||
NazaraError("Failed to initialize PluginManager");
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
s_directories.insert(NzFile::AbsolutePath(directoryPath));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool NzPluginManager::Initialize()
|
||||
|
||||
Reference in New Issue
Block a user