RomFS Extraction

This commit is contained in:
Zach Hilman
2018-07-27 18:14:03 -04:00
parent 0191a1e526
commit 906d785c73
12 changed files with 351 additions and 20 deletions

View File

@ -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())