diff options
| author | 2018-07-23 22:40:35 -0400 | |
|---|---|---|
| committer | 2018-07-23 19:40:35 -0700 | |
| commit | 59cb258409c5cbd6cdc9cc6a6f8e858603924a2b (patch) | |
| tree | c024d285fe63daae9d73ef07800349a065768672 /src/common/file_util.h | |
| parent | Merge pull request #787 from bunnei/tlds (diff) | |
| download | yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.tar.gz yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.tar.xz yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.zip | |
VFS Regression and Accuracy Fixes (#776)
* Regression and Mode Fixes
* Review Fixes
* string_view correction
* Add operator& for FileSys::Mode
* Return std::string from SanitizePath
* Farming Simulator Fix
* Use != With mode operator&
Diffstat (limited to 'src/common/file_util.h')
| -rw-r--r-- | src/common/file_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h index abfa79eae..bc9272d89 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h | |||
| @@ -178,6 +178,9 @@ std::vector<T> SliceVector(const std::vector<T>& vector, size_t first, size_t la | |||
| 178 | return std::vector<T>(vector.begin() + first, vector.begin() + first + last); | 178 | return std::vector<T>(vector.begin() + first, vector.begin() + first + last); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | // Removes trailing slash, makes all '\\' into '/', and removes duplicate '/'. | ||
| 182 | std::string SanitizePath(std::string_view path); | ||
| 183 | |||
| 181 | // simple wrapper for cstdlib file functions to | 184 | // simple wrapper for cstdlib file functions to |
| 182 | // hopefully will make error checking easier | 185 | // hopefully will make error checking easier |
| 183 | // and make forgetting an fclose() harder | 186 | // and make forgetting an fclose() harder |