| 1827 | |
| 1828 | |
| 1829 | static void LoadExtByName(const char *extensionName) |
| 1830 | { |
| 1831 | sfgogl_StrToExtMap *entry = NULL; |
| 1832 | entry = FindExtEntry(extensionName); |
| 1833 | if(entry) |
| 1834 | { |
| 1835 | if(entry->LoadExtension) |
| 1836 | { |
| 1837 | int numFailed = entry->LoadExtension(); |
| 1838 | if(numFailed == 0) |
| 1839 | { |
| 1840 | *(entry->extensionVariable) = sfgogl_LOAD_SUCCEEDED; |
| 1841 | } |
| 1842 | else |
| 1843 | { |
| 1844 | *(entry->extensionVariable) = sfgogl_LOAD_SUCCEEDED + numFailed; |
| 1845 | } |
| 1846 | } |
| 1847 | else |
| 1848 | { |
| 1849 | *(entry->extensionVariable) = sfgogl_LOAD_SUCCEEDED; |
| 1850 | } |
| 1851 | } |
| 1852 | } |
| 1853 | |
| 1854 | |
| 1855 | static void ProcExtsFromExtString(const char *strExtList) |
no test coverage detected