Remove component registration message
This commit is contained in:
parent
3585ab62a7
commit
19d177ed29
@ -60,7 +60,9 @@ namespace Components
|
|||||||
std::reverse(Loader::Components.begin(), Loader::Components.end());
|
std::reverse(Loader::Components.begin(), Loader::Components.end());
|
||||||
for (auto component : Loader::Components)
|
for (auto component : Loader::Components)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
Logger::Print("Unregistering component: %s\n", component->GetName());
|
Logger::Print("Unregistering component: %s\n", component->GetName());
|
||||||
|
#endif
|
||||||
delete component;
|
delete component;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,7 +101,9 @@ namespace Components
|
|||||||
{
|
{
|
||||||
if (component)
|
if (component)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
Logger::Print("Component registered: %s\n", component->GetName());
|
Logger::Print("Component registered: %s\n", component->GetName());
|
||||||
|
#endif
|
||||||
Loader::Components.push_back(component);
|
Loader::Components.push_back(component);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user