summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.h
diff options
context:
space:
mode:
authorZach Hilman <DarkLordZach@users.noreply.github.com>2018-07-24 04:40:35 +0200
committerbunnei <bunneidev@gmail.com>2018-07-24 04:40:35 +0200
commit59cb258409c5cbd6cdc9cc6a6f8e858603924a2b (patch)
treec024d285fe63daae9d73ef07800349a065768672 /src/common/file_util.h
parentMerge pull request #787 from bunnei/tlds (diff)
downloadyuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.tar
yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.tar.gz
yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.tar.bz2
yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.tar.lz
yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.tar.xz
yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.tar.zst
yuzu-59cb258409c5cbd6cdc9cc6a6f8e858603924a2b.zip
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h3
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
return std::vector<T>(vector.begin() + first, vector.begin() + first + last);
}
+// Removes trailing slash, makes all '\\' into '/', and removes duplicate '/'.
+std::string SanitizePath(std::string_view path);
+
// simple wrapper for cstdlib file functions to
// hopefully will make error checking easier
// and make forgetting an fclose() harder