diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/xts_archive.cpp | 4 | ||||
| -rw-r--r-- | src/core/file_sys/xts_archive.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/xts_archive.cpp b/src/core/file_sys/xts_archive.cpp index 55257da2e..6935d2fa2 100644 --- a/src/core/file_sys/xts_archive.cpp +++ b/src/core/file_sys/xts_archive.cpp | |||
| @@ -138,9 +138,9 @@ VirtualFile NAX::GetDecrypted() const { | |||
| 138 | return dec_file; | 138 | return dec_file; |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | std::shared_ptr<NCA> NAX::AsNCA() const { | 141 | std::unique_ptr<NCA> NAX::AsNCA() const { |
| 142 | if (type == NAXContentType::NCA) | 142 | if (type == NAXContentType::NCA) |
| 143 | return std::make_shared<NCA>(GetDecrypted()); | 143 | return std::make_unique<NCA>(GetDecrypted()); |
| 144 | return nullptr; | 144 | return nullptr; |
| 145 | } | 145 | } |
| 146 | 146 | ||
diff --git a/src/core/file_sys/xts_archive.h b/src/core/file_sys/xts_archive.h index 0dd0536f1..6e2fc4d2e 100644 --- a/src/core/file_sys/xts_archive.h +++ b/src/core/file_sys/xts_archive.h | |||
| @@ -38,7 +38,7 @@ public: | |||
| 38 | 38 | ||
| 39 | VirtualFile GetDecrypted() const; | 39 | VirtualFile GetDecrypted() const; |
| 40 | 40 | ||
| 41 | std::shared_ptr<NCA> AsNCA() const; | 41 | std::unique_ptr<NCA> AsNCA() const; |
| 42 | 42 | ||
| 43 | NAXContentType GetContentType() const; | 43 | NAXContentType GetContentType() const; |
| 44 | 44 | ||