forked from metin-server/m2dev-client-src
add GameThreadPool
This commit is contained in:
@@ -939,6 +939,13 @@ unsigned __GetWindowMode(bool windowed)
|
||||
|
||||
bool CPythonApplication::Create(PyObject * poSelf, const char * c_szName, int width, int height, int Windowed)
|
||||
{
|
||||
// Initialize Game Thread Pool first - required by other systems
|
||||
CGameThreadPool* pThreadPool = CGameThreadPool::InstancePtr();
|
||||
if (pThreadPool)
|
||||
{
|
||||
pThreadPool->Initialize();
|
||||
}
|
||||
|
||||
NANOBEGIN
|
||||
Windowed = CPythonSystem::Instance().IsWindowed() ? 1 : 0;
|
||||
|
||||
@@ -1250,6 +1257,9 @@ void CPythonApplication::Destroy()
|
||||
m_kEftMgr.Destroy();
|
||||
m_LightManager.Destroy();
|
||||
|
||||
// Game Thread Pool
|
||||
CGameThreadPool::Instance().Destroy();
|
||||
|
||||
// DEFAULT_FONT
|
||||
DefaultFont_Cleanup();
|
||||
// END_OF_DEFAULT_FONT
|
||||
|
||||
Reference in New Issue
Block a user