mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 08:45:45 +00:00
Added CreateDirectory function to service/fs.cpp, and in Archive.
This commit is contained in:
parent
2ca12e7f38
commit
04c90c395d
8 changed files with 103 additions and 4 deletions
|
@ -57,6 +57,15 @@ std::unique_ptr<File> Archive_SDMC::OpenFile(const std::string& path, const Mode
|
|||
return std::unique_ptr<File>(file);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a directory specified by its path
|
||||
* @param path Path relative to the archive
|
||||
* @return Whether the directory could be created
|
||||
*/
|
||||
bool Archive_SDMC::CreateDirectory(const std::string& path) const {
|
||||
return FileUtil::CreateDir(GetMountPoint() + path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Open a directory specified by its path
|
||||
* @param path Path relative to the archive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue