aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/romfs_filesystem.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-23 20:48:26 -0400
committerGitHub <noreply@github.com>2018-03-23 20:48:26 -0400
commita397a9e9a4bad1ed03229082408b7fa424295530 (patch)
tree3f4766c0bc490d10cf89377475c23fa237e2bba2 /src/core/file_sys/romfs_filesystem.cpp
parent68658ce4b095e41b50bdd5c91620407845c08779 (diff)
parent4c06d55a81304d0e658adf441d8bdb90a32ba228 (diff)
Merge pull request #255 from Subv/sd_card
FS: Implemented access to the SD card
Diffstat (limited to 'src/core/file_sys/romfs_filesystem.cpp')
-rw-r--r--src/core/file_sys/romfs_filesystem.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/romfs_filesystem.cpp b/src/core/file_sys/romfs_filesystem.cpp
index f1f9b4d04..0c6cc3157 100644
--- a/src/core/file_sys/romfs_filesystem.cpp
+++ b/src/core/file_sys/romfs_filesystem.cpp
@@ -55,7 +55,7 @@ ResultCode RomFS_FileSystem::CreateFile(const std::string& path, u64 size) const
return ResultCode(-1);
}
-ResultCode RomFS_FileSystem::CreateDirectory(const Path& path) const {
+ResultCode RomFS_FileSystem::CreateDirectory(const std::string& path) const {
LOG_CRITICAL(Service_FS, "Attempted to create a directory in an ROMFS archive (%s).",
GetName().c_str());
// TODO(wwylele): Use correct error code
@@ -70,7 +70,8 @@ ResultCode RomFS_FileSystem::RenameDirectory(const Path& src_path, const Path& d
}
ResultVal<std::unique_ptr<DirectoryBackend>> RomFS_FileSystem::OpenDirectory(
- const Path& path) const {
+ const std::string& path) const {
+ LOG_WARNING(Service_FS, "Opening Directory in a ROMFS archive");
return MakeResult<std::unique_ptr<DirectoryBackend>>(std::make_unique<ROMFSDirectory>());
}