diff options
author | erihel <erihel@gmail.com> | 2012-08-12 15:00:37 +0200 |
---|---|---|
committer | erihel <erihel@gmail.com> | 2012-08-12 15:00:37 +0200 |
commit | 5e271e550dbb88f0bbea5f46aad9f0fd1d750eb3 (patch) | |
tree | d0e4c7bb68a6b07019574b5621fb086e8a07557c /src/plugins/test/plugin_test.cpp | |
parent | 9946459c0cd65c3b66719a2aefc42c7ab2a29c04 (diff) | |
download | colobot-5e271e550dbb88f0bbea5f46aad9f0fd1d750eb3.tar.gz colobot-5e271e550dbb88f0bbea5f46aad9f0fd1d750eb3.tar.bz2 colobot-5e271e550dbb88f0bbea5f46aad9f0fd1d750eb3.zip |
* New CPluginManager class for managing plugins based on colobot.ini
* Moved sound plugin into sound dir
* Minor changes in logger and profile
Diffstat (limited to 'src/plugins/test/plugin_test.cpp')
-rw-r--r-- | src/plugins/test/plugin_test.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/plugins/test/plugin_test.cpp b/src/plugins/test/plugin_test.cpp deleted file mode 100644 index 9aadfac..0000000 --- a/src/plugins/test/plugin_test.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include <string> -#include <cstdio> -#include <unistd.h> - -#include <common/logger.h> -#include <common/iman.h> -#include <sound/sound.h> -#include <plugins/pluginloader.h> - - -int main() { - new CLogger(); - new CInstanceManager(); - - lt_dlinit(); - - CPluginLoader *plugin = new CPluginLoader("libopenalsound"); - if (plugin->LoadPlugin()) { - CSoundInterface *sound = static_cast<CSoundInterface*>(CInstanceManager::GetInstancePointer()->SearchInstance(CLASS_SOUND)); - - sound->Create(true); - sound->CacheAll(); - sound->Play((Sound)8); - sound->Play((Sound)18); - - sleep(10); - /* - while (1) - { - // just a test, very slow - plugin->FrameMove(0); - //if ('n' == getchar()) - // break; - }*/ - plugin->UnloadPlugin(); - } - - lt_dlexit(); - return 0; -} |