mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-14 09:18:57 -05:00
FileSys: Updated backend code to use FileSys::Path instead of string for paths.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user