| 44 | return "BWAPI_CONFIG_" + Util::to_upper_copy(pszKey) + "__" + Util::to_upper_copy(pszItem); |
| 45 | } |
| 46 | std::string LoadConfigStringFromFile(const char *pszKey, const char *pszItem, const char *pszDefault) |
| 47 | { |
| 48 | char buffer[MAX_PATH]; |
| 49 | GetPrivateProfileStringA(pszKey, pszItem, pszDefault ? pszDefault : "", buffer, MAX_PATH, configPath().c_str()); |
| 50 | return std::string(buffer); |
| 51 | } |
| 52 | std::string LoadConfigString(const char *pszKey, const char *pszItem, const char *pszDefault) |
| 53 | { |
| 54 | std::string envKey = envKeyName(pszKey, pszItem); |
no test coverage detected