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/directory_backend.h (renamed from src/core/file_sys/directory.h) | 6 | ||||
| -rw-r--r-- | src/core/file_sys/directory_romfs.h | 4 | ||||
| -rw-r--r-- | src/core/file_sys/directory_sdmc.h | 4 | ||||
| -rw-r--r-- | src/core/hle/service/fs/archive.cpp | 4 |
10 files changed, 18 insertions, 18 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 463f14eee..c0ebd1c7e 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -99,7 +99,7 @@ set(HEADERS | |||
| 99 | file_sys/file.h | 99 | file_sys/file.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.h | 102 | file_sys/directory_backend.h |
| 103 | file_sys/directory_romfs.h | 103 | file_sys/directory_romfs.h |
| 104 | file_sys/directory_sdmc.h | 104 | file_sys/directory_sdmc.h |
| 105 | hle/kernel/address_arbiter.h | 105 | hle/kernel/address_arbiter.h |
diff --git a/src/core/file_sys/archive_backend.h b/src/core/file_sys/archive_backend.h index 0558698f6..49a310383 100644 --- a/src/core/file_sys/archive_backend.h +++ b/src/core/file_sys/archive_backend.h | |||
| @@ -11,7 +11,7 @@ | |||
| 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.h" |
| 14 | #include "core/file_sys/directory.h" | 14 | #include "core/file_sys/directory_backend.h" |
| 15 | 15 | ||
| 16 | #include "core/mem_map.h" | 16 | #include "core/mem_map.h" |
| 17 | #include "core/hle/kernel/kernel.h" | 17 | #include "core/hle/kernel/kernel.h" |
| @@ -219,7 +219,7 @@ public: | |||
| 219 | * @param path Path relative to the archive | 219 | * @param path Path relative to the archive |
| 220 | * @return Opened directory, or nullptr | 220 | * @return Opened directory, or nullptr |
| 221 | */ | 221 | */ |
| 222 | virtual std::unique_ptr<Directory> OpenDirectory(const Path& path) const = 0; | 222 | virtual std::unique_ptr<DirectoryBackend> OpenDirectory(const Path& path) const = 0; |
| 223 | 223 | ||
| 224 | /** | 224 | /** |
| 225 | * Read data from the archive | 225 | * Read data from the archive |
diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cpp index 74974c2df..8db7d69c5 100644 --- a/src/core/file_sys/archive_romfs.cpp +++ b/src/core/file_sys/archive_romfs.cpp | |||
| @@ -78,8 +78,8 @@ bool Archive_RomFS::RenameDirectory(const FileSys::Path& src_path, const FileSys | |||
| 78 | * @param path Path relative to the archive | 78 | * @param path Path relative to the archive |
| 79 | * @return Opened directory, or nullptr | 79 | * @return Opened directory, or nullptr |
| 80 | */ | 80 | */ |
| 81 | std::unique_ptr<Directory> Archive_RomFS::OpenDirectory(const Path& path) const { | 81 | std::unique_ptr<DirectoryBackend> Archive_RomFS::OpenDirectory(const Path& path) const { |
| 82 | return std::unique_ptr<Directory>(new Directory_RomFS); | 82 | return std::unique_ptr<DirectoryBackend>(new Directory_RomFS); |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | /** | 85 | /** |
diff --git a/src/core/file_sys/archive_romfs.h b/src/core/file_sys/archive_romfs.h index 91505da49..5a8a6b04d 100644 --- a/src/core/file_sys/archive_romfs.h +++ b/src/core/file_sys/archive_romfs.h | |||
| @@ -74,7 +74,7 @@ public: | |||
| 74 | * @param path Path relative to the archive | 74 | * @param path Path relative to the archive |
| 75 | * @return Opened directory, or nullptr | 75 | * @return Opened directory, or nullptr |
| 76 | */ | 76 | */ |
| 77 | std::unique_ptr<Directory> OpenDirectory(const Path& path) const override; | 77 | std::unique_ptr<DirectoryBackend> OpenDirectory(const Path& path) const override; |
| 78 | 78 | ||
| 79 | /** | 79 | /** |
| 80 | * Read data from the archive | 80 | * Read data from the archive |
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp index 9e524b60e..9d26d2285 100644 --- a/src/core/file_sys/archive_sdmc.cpp +++ b/src/core/file_sys/archive_sdmc.cpp | |||
| @@ -97,12 +97,12 @@ bool Archive_SDMC::RenameDirectory(const FileSys::Path& src_path, const FileSys: | |||
| 97 | * @param path Path relative to the archive | 97 | * @param path Path relative to the archive |
| 98 | * @return Opened directory, or nullptr | 98 | * @return Opened directory, or nullptr |
| 99 | */ | 99 | */ |
| 100 | std::unique_ptr<Directory> Archive_SDMC::OpenDirectory(const Path& path) const { | 100 | std::unique_ptr<DirectoryBackend> Archive_SDMC::OpenDirectory(const Path& path) const { |
| 101 | LOG_DEBUG(Service_FS, "called path=%s", path.DebugStr().c_str()); | 101 | LOG_DEBUG(Service_FS, "called path=%s", path.DebugStr().c_str()); |
| 102 | Directory_SDMC* directory = new Directory_SDMC(this, path); | 102 | Directory_SDMC* directory = new Directory_SDMC(this, path); |
| 103 | if (!directory->Open()) | 103 | if (!directory->Open()) |
| 104 | return nullptr; | 104 | return nullptr; |
| 105 | return std::unique_ptr<Directory>(directory); | 105 | return std::unique_ptr<DirectoryBackend>(directory); |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | /** | 108 | /** |
diff --git a/src/core/file_sys/archive_sdmc.h b/src/core/file_sys/archive_sdmc.h index 347f3945e..f4cb96159 100644 --- a/src/core/file_sys/archive_sdmc.h +++ b/src/core/file_sys/archive_sdmc.h | |||
| @@ -78,7 +78,7 @@ public: | |||
| 78 | * @param path Path relative to the archive | 78 | * @param path Path relative to the archive |
| 79 | * @return Opened directory, or nullptr | 79 | * @return Opened directory, or nullptr |
| 80 | */ | 80 | */ |
| 81 | std::unique_ptr<Directory> OpenDirectory(const Path& path) const override; | 81 | std::unique_ptr<DirectoryBackend> OpenDirectory(const Path& path) const override; |
| 82 | 82 | ||
| 83 | /** | 83 | /** |
| 84 | * Read data from the archive | 84 | * Read data from the archive |
diff --git a/src/core/file_sys/directory.h b/src/core/file_sys/directory_backend.h index 1bb4101d6..188746a6f 100644 --- a/src/core/file_sys/directory.h +++ b/src/core/file_sys/directory_backend.h | |||
| @@ -36,10 +36,10 @@ static_assert(offsetof(Entry, extension) == 0x216, "Wrong offset for extension i | |||
| 36 | static_assert(offsetof(Entry, is_archive) == 0x21E, "Wrong offset for is_archive in Entry."); | 36 | static_assert(offsetof(Entry, is_archive) == 0x21E, "Wrong offset for is_archive in Entry."); |
| 37 | static_assert(offsetof(Entry, file_size) == 0x220, "Wrong offset for file_size in Entry."); | 37 | static_assert(offsetof(Entry, file_size) == 0x220, "Wrong offset for file_size in Entry."); |
| 38 | 38 | ||
| 39 | class Directory : NonCopyable { | 39 | class DirectoryBackend : NonCopyable { |
| 40 | public: | 40 | public: |
| 41 | Directory() { } | 41 | DirectoryBackend() { } |
| 42 | virtual ~Directory() { } | 42 | virtual ~DirectoryBackend() { } |
| 43 | 43 | ||
| 44 | /** | 44 | /** |
| 45 | * Open the directory | 45 | * Open the directory |
diff --git a/src/core/file_sys/directory_romfs.h b/src/core/file_sys/directory_romfs.h index e2944099e..b775f014d 100644 --- a/src/core/file_sys/directory_romfs.h +++ b/src/core/file_sys/directory_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/directory.h" | 9 | #include "core/file_sys/directory_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 Directory_RomFS final : public Directory { | 17 | class Directory_RomFS final : public DirectoryBackend { |
| 18 | public: | 18 | public: |
| 19 | Directory_RomFS(); | 19 | Directory_RomFS(); |
| 20 | ~Directory_RomFS() override; | 20 | ~Directory_RomFS() override; |
diff --git a/src/core/file_sys/directory_sdmc.h b/src/core/file_sys/directory_sdmc.h index 4c08b0d61..407a256ef 100644 --- a/src/core/file_sys/directory_sdmc.h +++ b/src/core/file_sys/directory_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/directory.h" | 10 | #include "core/file_sys/directory_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 Directory_SDMC final : public Directory { | 19 | class Directory_SDMC final : public DirectoryBackend { |
| 20 | public: | 20 | public: |
| 21 | Directory_SDMC(); | 21 | Directory_SDMC(); |
| 22 | Directory_SDMC(const Archive_SDMC* archive, const Path& path); | 22 | Directory_SDMC(const Archive_SDMC* archive, const Path& path); |
diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp index 6ec310a63..9a3725138 100644 --- a/src/core/hle/service/fs/archive.cpp +++ b/src/core/hle/service/fs/archive.cpp | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | 10 | ||
| 11 | #include "core/file_sys/archive_backend.h" | 11 | #include "core/file_sys/archive_backend.h" |
| 12 | #include "core/file_sys/archive_sdmc.h" | 12 | #include "core/file_sys/archive_sdmc.h" |
| 13 | #include "core/file_sys/directory.h" | 13 | #include "core/file_sys/directory_backend.h" |
| 14 | #include "core/hle/service/fs/archive.h" | 14 | #include "core/hle/service/fs/archive.h" |
| 15 | #include "core/hle/kernel/session.h" | 15 | #include "core/hle/kernel/session.h" |
| 16 | #include "core/hle/result.h" | 16 | #include "core/hle/result.h" |
| @@ -186,7 +186,7 @@ public: | |||
| 186 | std::string GetName() const override { return "Directory: " + path.DebugStr(); } | 186 | std::string GetName() const override { return "Directory: " + path.DebugStr(); } |
| 187 | 187 | ||
| 188 | FileSys::Path path; ///< Path of the directory | 188 | FileSys::Path path; ///< Path of the directory |
| 189 | std::unique_ptr<FileSys::Directory> backend; ///< File backend interface | 189 | std::unique_ptr<FileSys::DirectoryBackend> backend; ///< File backend interface |
| 190 | 190 | ||
| 191 | ResultVal<bool> SyncRequest() override { | 191 | ResultVal<bool> SyncRequest() override { |
| 192 | u32* cmd_buff = Kernel::GetCommandBuffer(); | 192 | u32* cmd_buff = Kernel::GetCommandBuffer(); |