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

Method GetPluginName

bwapi/BWAPI_PluginInjector/mpqdraft.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19BOOL WINAPI MPQDraftPluginInterface::GetPluginName(LPSTR pPluginName, DWORD namebufferlength)
20{
21 // safeguard
22 if ( !pPluginName )
23 return FALSE;
24
25 // Copy the plugin name to the target
26 strcpy(pPluginName, ::GetPluginName().substr(0, namebufferlength-1).c_str());
27 return TRUE;
28}
29
30BOOL WINAPI MPQDraftPluginInterface::CanPatchExecutable(LPCSTR /*exefilename*/)
31{ //Generally you check if the version is right here

Callers

nothing calls this directly

Calls 2

GetPluginNameFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected