mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 07:56:38 +00:00 
			
		
		
		
	It doesn't work yet due to osgDB::listAllAvailablePlugins returning a list of paths to dynamic libraries. That means: * the check fails when the required plugin is linked statically. * we're going to have to do something to slice up the filenames. * there'll probably be unicode errors when the OpenMW installation path isn't representable by the current eight-bit code page on Windows. Alternatively, we can switch to listing the required file extension support, and use osgDB::Registry::instance()->getReaderWriterList() and each element's supportedExtensions() function, but I don't think we've actually got that list of extensions anywhere and it might get desynced with the existing list of plugins if we add more.
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			178 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			178 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_MISC_OSGPLUGINCHECKER_HPP
 | |
| #define OPENMW_COMPONENTS_MISC_OSGPLUGINCHECKER_HPP
 | |
| 
 | |
| namespace Misc
 | |
| {
 | |
|     bool checkRequiredOSGPluginsArePresent();
 | |
| }
 | |
| 
 | |
| #endif
 |