diff options
author | Tony Wasserka <neobrainx@gmail.com> | 2014-12-29 12:14:59 +0100 |
---|---|---|
committer | Tony Wasserka <neobrainx@gmail.com> | 2014-12-29 12:14:59 +0100 |
commit | 13699f05e794d82efaf6ca16f4e4c6d8e661b5f1 (patch) | |
tree | 78a29f7772d8bb22588dd557f6d5867ca26e30e2 /src/core/file_sys/archive_romfs.cpp | |
parent | Merge pull request #360 from lioncash/dynuxt (diff) | |
parent | FileSys: Clean up according to the coding style, and remove redundant namespaced names. (diff) | |
download | yuzu-13699f05e794d82efaf6ca16f4e4c6d8e661b5f1.tar yuzu-13699f05e794d82efaf6ca16f4e4c6d8e661b5f1.tar.gz yuzu-13699f05e794d82efaf6ca16f4e4c6d8e661b5f1.tar.bz2 yuzu-13699f05e794d82efaf6ca16f4e4c6d8e661b5f1.tar.lz yuzu-13699f05e794d82efaf6ca16f4e4c6d8e661b5f1.tar.xz yuzu-13699f05e794d82efaf6ca16f4e4c6d8e661b5f1.tar.zst yuzu-13699f05e794d82efaf6ca16f4e4c6d8e661b5f1.zip |
Diffstat (limited to 'src/core/file_sys/archive_romfs.cpp')
-rw-r--r-- | src/core/file_sys/archive_romfs.cpp | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cpp index ced0794ef..fdaf73179 100644 --- a/src/core/file_sys/archive_romfs.cpp +++ b/src/core/file_sys/archive_romfs.cpp @@ -23,37 +23,21 @@ Archive_RomFS::Archive_RomFS(const Loader::AppLoader& app_loader) { } } -/** - * Open a file specified by its path, using the specified mode - * @param path Path relative to the archive - * @param mode Mode to open the file with - * @return Opened file, or nullptr - */ std::unique_ptr<FileBackend> Archive_RomFS::OpenFile(const Path& path, const Mode mode) const { return Common::make_unique<File_RomFS>(this); } -/** - * Delete a file specified by its path - * @param path Path relative to the archive - * @return Whether the file could be deleted - */ -bool Archive_RomFS::DeleteFile(const FileSys::Path& path) const { +bool Archive_RomFS::DeleteFile(const Path& path) const { LOG_WARNING(Service_FS, "Attempted to delete a file from ROMFS."); return false; } -bool Archive_RomFS::RenameFile(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { +bool Archive_RomFS::RenameFile(const Path& src_path, const Path& dest_path) const { LOG_WARNING(Service_FS, "Attempted to rename a file within ROMFS."); return false; } -/** - * Delete a directory specified by its path - * @param path Path relative to the archive - * @return Whether the directory could be deleted - */ -bool Archive_RomFS::DeleteDirectory(const FileSys::Path& path) const { +bool Archive_RomFS::DeleteDirectory(const Path& path) const { LOG_WARNING(Service_FS, "Attempted to delete a directory from ROMFS."); return false; } @@ -64,26 +48,16 @@ ResultCode Archive_RomFS::CreateFile(const Path& path, u32 size) const { return ResultCode(ErrorDescription::NotAuthorized, ErrorModule::FS, ErrorSummary::NotSupported, ErrorLevel::Permanent); } -/** - * Create a directory specified by its path - * @param path Path relative to the archive - * @return Whether the directory could be created - */ bool Archive_RomFS::CreateDirectory(const Path& path) const { LOG_WARNING(Service_FS, "Attempted to create a directory in ROMFS."); return false; } -bool Archive_RomFS::RenameDirectory(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { +bool Archive_RomFS::RenameDirectory(const Path& src_path, const Path& dest_path) const { LOG_WARNING(Service_FS, "Attempted to rename a file within ROMFS."); return false; } -/** - * Open a directory specified by its path - * @param path Path relative to the archive - * @return Opened directory, or nullptr - */ std::unique_ptr<DirectoryBackend> Archive_RomFS::OpenDirectory(const Path& path) const { return Common::make_unique<Directory_RomFS>(); } |