diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-19 20:16:22 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-19 20:22:37 +0200 |
commit | 2752183883604673e5058a3a6f62defcdca49a72 (patch) | |
tree | f475ccc696f50a34016f788412daa868c2759dd8 /src/core/file_sys/xts_archive.cpp | |
parent | nax: Avoid re-parsing NAX data with GetFileType() (diff) | |
download | yuzu-2752183883604673e5058a3a6f62defcdca49a72.tar yuzu-2752183883604673e5058a3a6f62defcdca49a72.tar.gz yuzu-2752183883604673e5058a3a6f62defcdca49a72.tar.bz2 yuzu-2752183883604673e5058a3a6f62defcdca49a72.tar.lz yuzu-2752183883604673e5058a3a6f62defcdca49a72.tar.xz yuzu-2752183883604673e5058a3a6f62defcdca49a72.tar.zst yuzu-2752183883604673e5058a3a6f62defcdca49a72.zip |
Diffstat (limited to 'src/core/file_sys/xts_archive.cpp')
-rw-r--r-- | src/core/file_sys/xts_archive.cpp | 4 |
1 files changed, 2 insertions, 2 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 { return dec_file; } -std::shared_ptr<NCA> NAX::AsNCA() const { +std::unique_ptr<NCA> NAX::AsNCA() const { if (type == NAXContentType::NCA) - return std::make_shared<NCA>(GetDecrypted()); + return std::make_unique<NCA>(GetDecrypted()); return nullptr; } |