Returns the Unix path of the specified file. @param p_File File path. @return File path with backslashes replaced by forward slashes.
| 62 | // @return File path with backslashes replaced by forward slashes. |
| 63 | // |
| 64 | std::wstring UnixPathPlugin::GetPath(const std::wstring& p_File) const |
| 65 | { |
| 66 | // Call parent to get long path. |
| 67 | std::wstring path = LongPathPlugin::GetPath(p_File); |
| 68 | |
| 69 | // Replace all backslashes with forward slashes and return the path. |
| 70 | std::replace(path.begin(), path.end(), L'\\', L'/'); |
| 71 | return path; |
| 72 | } |
| 73 | |
| 74 | // |
| 75 | // Protected constructor with custom description and help text resources. |