blob: 9b3f4720ea69f3e4c573f8ed890e6ba5f8bd8fec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <common/logger.h>
#include <common/profile.h>
#include <common/iman.h>
#include <plugins/pluginmanager.h>
#include <sound/sound.h>
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<CSoundInterface*>(CInstanceManager::GetInstancePointer()->SearchInstance(CLASS_SOUND));
sound->Create(true);
mgr->UnloadAllPlugins();
return 0;
}
|