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

Function RunConfig

bwapi/BWAPI_PluginInjector/config.cpp:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "common.h"
6
7bool RunConfig()
8{
9 // Get the bwapi-data directory
10 const std::string sBWAPIConfig{ GetBWAPIDataDirectory() + "/bwapi.ini" };
11
12 // Open the config file
13 if (reinterpret_cast<int>(ShellExecuteA(NULL, "open", sBWAPIConfig.c_str(), NULL, NULL, SW_SHOWNORMAL)) <= 32)
14 return BWAPIError("Unable to open BWAPI config file.");
15
16 return true;
17}
18

Callers 2

OpenConfigFunction · 0.85
ConfigureMethod · 0.85

Calls 3

GetBWAPIDataDirectoryFunction · 0.85
c_strMethod · 0.80
BWAPIErrorFunction · 0.70

Tested by

no test coverage detected