diff options
Diffstat (limited to 'src/plugins/test/manager_test.cpp')
-rw-r--r-- | src/plugins/test/manager_test.cpp | 7 |
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(); |