MCPcopy Create free account
hub / github.com/bwapi/bwapi / InitializePlugin

Method InitializePlugin

bwapi/BWAPI_PluginInjector/mpqdraft.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53BOOL WINAPI MPQDraftPluginInterface::InitializePlugin(IMPQDraftServer* /*server*/)
54{
55 std::string target = GetBWAPITarget();
56
57 if ( !LoadLibraryA(target.c_str()) )
58 return BWAPIError("Could not load \"%s\".", target.c_str());
59 return TRUE;
60}
61
62BOOL WINAPI MPQDraftPluginInterface::TerminatePlugin()
63{ //Called when starcraft closes

Callers

nothing calls this directly

Calls 3

GetBWAPITargetFunction · 0.85
c_strMethod · 0.80
BWAPIErrorFunction · 0.70

Tested by

no test coverage detected