#include #include #include #include #include int main() { new CLogger(); new CProfile(); new CInstanceManager(); CPluginManager *mgr = new CPluginManager(); if (!GetProfile()->InitCurrentDirectory()) { GetLogger()->Error("Config not found!\n"); return 1; } mgr->LoadFromProfile(); CSoundInterface *sound = static_cast(CInstanceManager::GetInstancePointer()->SearchInstance(CLASS_SOUND)); if (!sound) { GetLogger()->Error("Sound not loaded!\n"); return 2; } sound->Create(true); mgr->UnloadAllPlugins(); return 0; }