| 558 | } |
| 559 | |
| 560 | struct CommonFileIOInterface* b3PluginManager::getFileIOInterface() |
| 561 | { |
| 562 | CommonFileIOInterface* fileIOInterface = 0; |
| 563 | if (m_data->m_activeFileIOPluginUid >= 0) |
| 564 | { |
| 565 | b3PluginHandle* plugin = m_data->m_plugins.getHandle(m_data->m_activeFileIOPluginUid); |
| 566 | if (plugin && plugin->m_getFileIOFunc) |
| 567 | { |
| 568 | b3PluginContext context = {0}; |
| 569 | context.m_userPointer = plugin->m_userPointer; |
| 570 | context.m_physClient = (b3PhysicsClientHandle)m_data->m_physicsDirect; |
| 571 | fileIOInterface = plugin->m_getFileIOFunc(&context); |
| 572 | } |
| 573 | } |
| 574 | if (fileIOInterface==0) |
| 575 | { |
| 576 | return &m_data->m_defaultFileIO; |
| 577 | } |
| 578 | return fileIOInterface; |
| 579 | } |
| 580 | |
| 581 | void b3PluginManager::selectCollisionPlugin(int pluginUniqueId) |
| 582 | { |
no test coverage detected