MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / findCoreModule

Method findCoreModule

libs/module/CoreModule.cpp:51–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51std::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
70radiant::IRadiant* CoreModule::get()
71{

Callers

nothing calls this directly

Calls 4

stringMethod · 0.80
FailureExceptionClass · 0.70
joinFunction · 0.50
getLibraryPathsMethod · 0.45

Tested by

no test coverage detected