summaryrefslogtreecommitdiffstats
path: root/src/plugins/test
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2012-08-12 18:37:11 +0200
committererihel <erihel@gmail.com>2012-08-12 18:37:11 +0200
commit62b545128f37746c343760e464872655b5523c6f (patch)
tree8eb3fbd914cfea11660534b296bfddcffcc5f7b4 /src/plugins/test
parentf01296690e7b86f3894b902779c4239d0a2b8277 (diff)
downloadcolobot-62b545128f37746c343760e464872655b5523c6f.tar.gz
colobot-62b545128f37746c343760e464872655b5523c6f.tar.bz2
colobot-62b545128f37746c343760e464872655b5523c6f.zip
* Final changes to plugin interface
* Added doxygen comments to plugin manager and plugin loader
Diffstat (limited to 'src/plugins/test')
-rw-r--r--src/plugins/test/manager_test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/test/manager_test.cpp b/src/plugins/test/manager_test.cpp
index 9b3f472..d921c1d 100644
--- a/src/plugins/test/manager_test.cpp
+++ b/src/plugins/test/manager_test.cpp
@@ -15,8 +15,15 @@ int main() {
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();