| 50 | } |
| 51 | |
| 52 | std::string GetProcessFileName(bool bIncludeExtension) |
| 53 | { |
| 54 | wchar_t buffer[MAX_PATH] = { 0 }; |
| 55 | GetModuleFileNameW(NULL, buffer, MAX_PATH); |
| 56 | std::string filePath = ToUTF8String(buffer); |
| 57 | std::string fileName = filePath.substr(filePath.find_last_of("/\\") + 1); |
| 58 | if (bIncludeExtension) |
| 59 | { |
| 60 | return fileName; |
| 61 | } |
| 62 | else |
| 63 | { |
| 64 | return std::string(fileName.substr(0, fileName.find_last_of("."))); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | bool CreateDirectoryPath(const std::string_view& path) |
| 69 | { |
no test coverage detected