diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/core/file_sys/archive_backend.h | 4 | ||||
| -rw-r--r-- | src/core/file_sys/archive_romfs.cpp | 4 | ||||
| -rw-r--r-- | src/core/file_sys/archive_romfs.h | 2 | ||||
| -rw-r--r-- | src/core/file_sys/archive_sdmc.cpp | 4 | ||||
| -rw-r--r-- | src/core/file_sys/archive_sdmc.h | 2 | ||||
| -rw-r--r-- | src/core/file_sys/file_backend.h (renamed from src/core/file_sys/file.h) | 6 | ||||
| -rw-r--r-- | src/core/file_sys/file_romfs.h | 4 | ||||
| -rw-r--r-- | src/core/file_sys/file_sdmc.h | 4 | ||||
| -rw-r--r-- | src/core/hle/service/fs/archive.cpp | 2 |
10 files changed, 17 insertions, 17 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index c0ebd1c7e..ce63aab09 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -96,7 +96,7 @@ set(HEADERS | |||
| 96 | file_sys/archive_backend.h | 96 | file_sys/archive_backend.h |
| 97 | file_sys/archive_romfs.h | 97 | file_sys/archive_romfs.h |
| 98 | file_sys/archive_sdmc.h | 98 | file_sys/archive_sdmc.h |
| 99 | file_sys/file.h | 99 | file_sys/file_backend.h |
| 100 | file_sys/file_romfs.h | 100 | file_sys/file_romfs.h |
| 101 | file_sys/file_sdmc.h | 101 | file_sys/file_sdmc.h |
| 102 | file_sys/directory_backend.h | 102 | file_sys/directory_backend.h |
diff --git a/src/core/file_sys/archive_backend.h b/src/core/file_sys/archive_backend.h index 49a310383..8d7a6a057 100644 --- a/src/core/file_sys/archive_backend.h +++ b/src/core/file_sys/archive_backend.h | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | #include "common/string_util.h" | 10 | #include "common/string_util.h" |
| 11 | #include "common/bit_field.h" | 11 | #include "common/bit_field.h" |
| 12 | 12 | ||
| 13 | #include "core/file_sys/file.h" | 13 | #include "core/file_sys/file_backend.h" |
| 14 | #include "core/file_sys/directory_backend.h" | 14 | #include "core/file_sys/directory_backend.h" |
| 15 | 15 | ||
| 16 | #include "core/mem_map.h" | 16 | #include "core/mem_map.h" |
| @@ -175,7 +175,7 @@ public: | |||
| 175 | * @param mode Mode to open the file with | 175 | * @param mode Mode to open the file with |
| 176 | * @return Opened file, or nullptr | 176 | * @return Opened file, or nullptr |
| 177 | */ | 177 | */ |
| 178 | virtual std::unique_ptr<File> OpenFile(const Path& path, const Mode mode) const = 0; | 178 | virtual std::unique_ptr<FileBackend> OpenFile(const Path& path, const Mode mode) const = 0; |
| 179 | 179 | ||
| 180 | /** | 180 | /** |
| 181 | * Delete a file specified by its path | 181 | * Delete a file specified by its path |
diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cpp index 8db7d69c5..c515e0dd9 100644 --- a/src/core/file_sys/archive_romfs.cpp +++ b/src/core/file_sys/archive_romfs.cpp | |||
| @@ -29,8 +29,8 @@ Archive_RomFS::~Archive_RomFS() { | |||
| 29 | * @param mode Mode to open the file with | 29 | * @param mode Mode to open the file with |
| 30 | * @return Opened file, or nullptr | 30 | * @return Opened file, or nullptr |
| 31 | */ | 31 | */ |
| 32 | std::unique_ptr<File> Archive_RomFS::OpenFile(const Path& path, const Mode mode) const { | 32 | std::unique_ptr<FileBackend> Archive_RomFS::OpenFile(const Path& path, const Mode mode) const { |
| 33 | return std::unique_ptr<File>(new File_RomFS); | 33 | return std::unique_ptr<FileBackend>(new File_RomFS); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | /** | 36 | /** |
diff --git a/src/core/file_sys/archive_romfs.h b/src/core/file_sys/archive_romfs.h index 5a8a6b04d..0390821bf 100644 --- a/src/core/file_sys/archive_romfs.h +++ b/src/core/file_sys/archive_romfs.h | |||
| @@ -30,7 +30,7 @@ public: | |||
| 30 | * @param mode Mode to open the file with | 30 | * @param mode Mode to open the file with |
| 31 | * @return Opened file, or nullptr | 31 | * @return Opened file, or nullptr |
| 32 | */ | 32 | */ |
| 33 | std::unique_ptr<File> OpenFile(const Path& path, const Mode mode) const override; | 33 | std::unique_ptr<FileBackend> OpenFile(const Path& path, const Mode mode) const override; |
| 34 | 34 | ||
| 35 | /** | 35 | /** |
| 36 | * Delete a file specified by its path | 36 | * Delete a file specified by its path |
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp index 9d26d2285..43252b98b 100644 --- a/src/core/file_sys/archive_sdmc.cpp +++ b/src/core/file_sys/archive_sdmc.cpp | |||
| @@ -49,12 +49,12 @@ bool Archive_SDMC::Initialize() { | |||
| 49 | * @param mode Mode to open the file with | 49 | * @param mode Mode to open the file with |
| 50 | * @return Opened file, or nullptr | 50 | * @return Opened file, or nullptr |
| 51 | */ | 51 | */ |
| 52 | std::unique_ptr<File> Archive_SDMC::OpenFile(const Path& path, const Mode mode) const { | 52 | std::unique_ptr<FileBackend> Archive_SDMC::OpenFile(const Path& path, const Mode mode) const { |
| 53 | LOG_DEBUG(Service_FS, "called path=%s mode=%u", path.DebugStr().c_str(), mode.hex); | 53 | LOG_DEBUG(Service_FS, "called path=%s mode=%u", path.DebugStr().c_str(), mode.hex); |
| 54 | File_SDMC* file = new File_SDMC(this, path, mode); | 54 | File_SDMC* file = new File_SDMC(this, path, mode); |
| 55 | if (!file->Open()) | 55 | if (!file->Open()) |
| 56 | return nullptr; | 56 | return nullptr; |
| 57 | return std::unique_ptr<File>(file); | 57 | return std::unique_ptr<FileBackend>(file); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | /** | 60 | /** |
diff --git a/src/core/file_sys/archive_sdmc.h b/src/core/file_sys/archive_sdmc.h index f4cb96159..5920051f7 100644 --- a/src/core/file_sys/archive_sdmc.h +++ b/src/core/file_sys/archive_sdmc.h | |||
| @@ -34,7 +34,7 @@ public: | |||
| 34 | * @param mode Mode to open the file with | 34 | * @param mode Mode to open the file with |
| 35 | * @return Opened file, or nullptr | 35 | * @return Opened file, or nullptr |
| 36 | */ | 36 | */ |
| 37 | std::unique_ptr<File> OpenFile(const Path& path, const Mode mode) const override; | 37 | std::unique_ptr<FileBackend> OpenFile(const Path& path, const Mode mode) const override; |
| 38 | 38 | ||
| 39 | /** | 39 | /** |
| 40 | * Delete a file specified by its path | 40 | * Delete a file specified by its path |
diff --git a/src/core/file_sys/file.h b/src/core/file_sys/file_backend.h index 4013b6c3e..1b81d5fe9 100644 --- a/src/core/file_sys/file.h +++ b/src/core/file_sys/file_backend.h | |||
| @@ -13,10 +13,10 @@ | |||
| 13 | 13 | ||
| 14 | namespace FileSys { | 14 | namespace FileSys { |
| 15 | 15 | ||
| 16 | class File : NonCopyable { | 16 | class FileBackend : NonCopyable { |
| 17 | public: | 17 | public: |
| 18 | File() { } | 18 | FileBackend() { } |
| 19 | virtual ~File() { } | 19 | virtual ~FileBackend() { } |
| 20 | 20 | ||
| 21 | /** | 21 | /** |
| 22 | * Open the file | 22 | * Open the file |
diff --git a/src/core/file_sys/file_romfs.h b/src/core/file_sys/file_romfs.h index 5196701d3..4ddaafe21 100644 --- a/src/core/file_sys/file_romfs.h +++ b/src/core/file_sys/file_romfs.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | 8 | ||
| 9 | #include "core/file_sys/file.h" | 9 | #include "core/file_sys/file_backend.h" |
| 10 | #include "core/loader/loader.h" | 10 | #include "core/loader/loader.h" |
| 11 | 11 | ||
| 12 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 12 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| @@ -14,7 +14,7 @@ | |||
| 14 | 14 | ||
| 15 | namespace FileSys { | 15 | namespace FileSys { |
| 16 | 16 | ||
| 17 | class File_RomFS final : public File { | 17 | class File_RomFS final : public FileBackend { |
| 18 | public: | 18 | public: |
| 19 | File_RomFS(); | 19 | File_RomFS(); |
| 20 | ~File_RomFS() override; | 20 | ~File_RomFS() override; |
diff --git a/src/core/file_sys/file_sdmc.h b/src/core/file_sys/file_sdmc.h index 80b445968..e01548598 100644 --- a/src/core/file_sys/file_sdmc.h +++ b/src/core/file_sys/file_sdmc.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "common/file_util.h" | 8 | #include "common/file_util.h" |
| 9 | 9 | ||
| 10 | #include "core/file_sys/file.h" | 10 | #include "core/file_sys/file_backend.h" |
| 11 | #include "core/file_sys/archive_sdmc.h" | 11 | #include "core/file_sys/archive_sdmc.h" |
| 12 | #include "core/loader/loader.h" | 12 | #include "core/loader/loader.h" |
| 13 | 13 | ||
| @@ -16,7 +16,7 @@ | |||
| 16 | 16 | ||
| 17 | namespace FileSys { | 17 | namespace FileSys { |
| 18 | 18 | ||
| 19 | class File_SDMC final : public File { | 19 | class File_SDMC final : public FileBackend { |
| 20 | public: | 20 | public: |
| 21 | File_SDMC(); | 21 | File_SDMC(); |
| 22 | File_SDMC(const Archive_SDMC* archive, const Path& path, const Mode mode); | 22 | File_SDMC(const Archive_SDMC* archive, const Path& path, const Mode mode); |
diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp index 9a3725138..d04e5b2e7 100644 --- a/src/core/hle/service/fs/archive.cpp +++ b/src/core/hle/service/fs/archive.cpp | |||
| @@ -112,7 +112,7 @@ public: | |||
| 112 | std::string GetName() const override { return "Path: " + path.DebugStr(); } | 112 | std::string GetName() const override { return "Path: " + path.DebugStr(); } |
| 113 | 113 | ||
| 114 | FileSys::Path path; ///< Path of the file | 114 | FileSys::Path path; ///< Path of the file |
| 115 | std::unique_ptr<FileSys::File> backend; ///< File backend interface | 115 | std::unique_ptr<FileSys::FileBackend> backend; ///< File backend interface |
| 116 | 116 | ||
| 117 | ResultVal<bool> SyncRequest() override { | 117 | ResultVal<bool> SyncRequest() override { |
| 118 | u32* cmd_buff = Kernel::GetCommandBuffer(); | 118 | u32* cmd_buff = Kernel::GetCommandBuffer(); |