| 198 | #if defined( _WIN32 ) |
| 199 | |
| 200 | std::string getExecutableDirectory() |
| 201 | { |
| 202 | std::string result; |
| 203 | std::array< char, FILENAME_MAX > path{}; |
| 204 | |
| 205 | if ( DWORD res = ::GetModuleFileNameA( nullptr |
| 206 | , path.data() |
| 207 | , sizeof( path ) ) ) |
| 208 | { |
| 209 | result = path.data(); |
| 210 | } |
| 211 | |
| 212 | result = getPath( result ) + PathSeparator; |
| 213 | return result; |
| 214 | } |
| 215 | |
| 216 | #elif defined( __APPLE__ ) |
| 217 |
no test coverage detected