| 49 | } |
| 50 | |
| 51 | std::string CoreModule::findCoreModule(IApplicationContext& context) |
| 52 | { |
| 53 | auto libraryPaths = context.getLibraryPaths(); |
| 54 | |
| 55 | for (auto libPath : libraryPaths) |
| 56 | { |
| 57 | fs::path coreModulePath = libPath; |
| 58 | coreModulePath /= Filename(); |
| 59 | |
| 60 | if (fs::exists(coreModulePath)) |
| 61 | { |
| 62 | return coreModulePath.string(); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | throw FailureException("Cannot find the main module in any of the paths: " + |
| 67 | string::join(libraryPaths, "; ")); |
| 68 | } |
| 69 | |
| 70 | radiant::IRadiant* CoreModule::get() |
| 71 | { |
nothing calls this directly
no test coverage detected