@return Full path to the executable file
| 33 | |
| 34 | /// @return Full path to the executable file |
| 35 | static bool GetPathToBinary(std::string & outPath) |
| 36 | { |
| 37 | // get path to executable |
| 38 | char pathBuf[MAX_PATH] = {0}; |
| 39 | if (0 < ::GetModuleFileNameA(NULL, pathBuf, MAX_PATH)) |
| 40 | { |
| 41 | outPath = pathBuf; |
| 42 | return true; |
| 43 | } |
| 44 | return false; |
| 45 | } |
| 46 | |
| 47 | namespace platform |
| 48 | { |