forked from eden-emu/eden
FileSys: Updated backend code to use FileSys::Path instead of string for paths.
This commit is contained in:
parent
c04a04189a
commit
a3107a6b57
12 changed files with 38 additions and 38 deletions
|
@ -15,11 +15,11 @@
|
|||
|
||||
namespace FileSys {
|
||||
|
||||
File_SDMC::File_SDMC(const Archive_SDMC* archive, const std::string& path, const Mode mode) {
|
||||
File_SDMC::File_SDMC(const Archive_SDMC* archive, const Path& path, const Mode mode) {
|
||||
// TODO(Link Mauve): normalize path into an absolute path without "..", it can currently bypass
|
||||
// the root directory we set while opening the archive.
|
||||
// For example, opening /../../etc/passwd can give the emulated program your users list.
|
||||
this->path = archive->GetMountPoint() + path;
|
||||
this->path = archive->GetMountPoint() + path.AsString();
|
||||
this->mode.hex = mode.hex;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue