diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2018-07-27 18:14:03 -0400 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2018-07-27 18:14:03 -0400 |
| commit | 906d785c73cb3644e8984fbfcbf5fcb8a1ebbc6f (patch) | |
| tree | beff5b868534a8bfb4eea7992553fa5fb5db5287 /src/core/file_sys/vfs_real.cpp | |
| parent | 0191a1e526f62a16a14ce92c354429807cca01a5 (diff) | |
RomFS Extraction
Diffstat (limited to 'src/core/file_sys/vfs_real.cpp')
| -rw-r--r-- | src/core/file_sys/vfs_real.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp index 9ce2e1efa..82d54da4a 100644 --- a/src/core/file_sys/vfs_real.cpp +++ b/src/core/file_sys/vfs_real.cpp @@ -195,6 +195,12 @@ bool RealVfsDirectory::Rename(std::string_view name) { return FileUtil::Rename(path, new_name); } +std::string RealVfsDirectory::GetFullPath() const { + auto out = path; + std::replace(out.begin(), out.end(), '\\', '/'); + return out; +} + bool RealVfsDirectory::ReplaceFileWithSubdirectory(VirtualFile file, VirtualDir dir) { const auto iter = std::find(files.begin(), files.end(), file); if (iter == files.end()) |
