Bugfix
This commit is contained in:
@@ -172,20 +172,22 @@ static const g_module_list[] =
|
|||||||
|
|
||||||
void ModuleManager::Init()
|
void ModuleManager::Init()
|
||||||
{
|
{
|
||||||
if (!initialized)
|
if (initialized)
|
||||||
{
|
{
|
||||||
clear_ppu_functions();
|
Close();
|
||||||
|
|
||||||
for (auto& m : g_module_list)
|
|
||||||
{
|
|
||||||
if (m.module)
|
|
||||||
{
|
|
||||||
m.module->Init();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
initialized = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clear_ppu_functions();
|
||||||
|
|
||||||
|
for (auto& m : g_module_list)
|
||||||
|
{
|
||||||
|
if (m.module)
|
||||||
|
{
|
||||||
|
m.module->Init();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
ModuleManager::ModuleManager()
|
ModuleManager::ModuleManager()
|
||||||
|
|||||||
Reference in New Issue
Block a user