diff options
author | erihel <erihel@gmail.com> | 2012-12-20 20:59:11 +0100 |
---|---|---|
committer | erihel <erihel@gmail.com> | 2012-12-20 20:59:11 +0100 |
commit | a6ff654ae37ca372d785c1e155fbfe67a3a25fed (patch) | |
tree | c65408f7219e22b106a38c120fe671dc2a995e9c /src/plugins/test/manager_test.cpp | |
parent | f77734e01c85aded92cf5fdc1e7038658e6aaf29 (diff) | |
download | colobot-a6ff654ae37ca372d785c1e155fbfe67a3a25fed.tar.gz colobot-a6ff654ae37ca372d785c1e155fbfe67a3a25fed.tar.bz2 colobot-a6ff654ae37ca372d785c1e155fbfe67a3a25fed.zip |
removing plugins for gold version (for mxe cross compiling)
Diffstat (limited to 'src/plugins/test/manager_test.cpp')
-rw-r--r-- | src/plugins/test/manager_test.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/plugins/test/manager_test.cpp b/src/plugins/test/manager_test.cpp deleted file mode 100644 index d921c1d..0000000 --- a/src/plugins/test/manager_test.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#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)); - - if (!sound) { - GetLogger()->Error("Sound not loaded!\n"); - return 2; - } - - sound->Create(true); - mgr->UnloadAllPlugins(); - - return 0; -} |