MCPcopy Create free account
hub / github.com/DFHack/dfhack / OpenPlugin

Function OpenPlugin

library/PlugLoad.cpp:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 DFLibrary * OpenPlugin (std::filesystem::path filename)
69 {
70 clear_error();
71 DFLibrary* ret = (DFLibrary*)load_library(filename);
72 if (!ret) {
73 auto error = get_error();
74 WARN(plugins).print("OpenPlugin on {} failed: {}\n", filename.string(), error);
75 }
76 return ret;
77 }
78 void * LookupPlugin (DFLibrary * plugin ,const char * function)
79 {
80 return (void *) get_function_address(plugin, function);

Callers 4

loadMethod · 0.85
initMethod · 0.85
initMethod · 0.85

Calls 2

get_errorFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected