| 191 | } |
| 192 | |
| 193 | bool ConfigurationHolder::buildConfigFilePath(const WCHAR* fileName) |
| 194 | { |
| 195 | ZeroMemory(configPath, sizeof(configPath)); |
| 196 | |
| 197 | if (!GetModuleFileName(0, configPath, _countof(configPath))) |
| 198 | { |
| 199 | #ifdef DEBUG_COMMENTS |
| 200 | Scylla::debugLog.log(L"buildConfigFilePath :: GetModuleFileName failed %d", GetLastError()); |
| 201 | #endif |
| 202 | return false; |
| 203 | } |
| 204 | |
| 205 | PathRemoveFileSpec(configPath); |
| 206 | PathAppend(configPath, fileName); |
| 207 | |
| 208 | return true; |
| 209 | } |