diff options
| author | 2024-02-18 07:03:50 +0100 | |
|---|---|---|
| committer | 2024-02-18 07:03:50 +0100 | |
| commit | 8bbb44a74e74134084475174a96649323fd73123 (patch) | |
| tree | d1e912da4796c6b50ad8d0891850e5d6786e6485 /src | |
| parent | file_sys: Formatting changes and use unique_ptr in GetCacheStorageMax (diff) | |
| download | yuzu-8bbb44a74e74134084475174a96649323fd73123.tar.gz yuzu-8bbb44a74e74134084475174a96649323fd73123.tar.xz yuzu-8bbb44a74e74134084475174a96649323fd73123.zip | |
service: Change unique_ptr to make_unique in GetCacheStorageMax
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/service/application_functions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/am/service/application_functions.cpp b/src/core/hle/service/am/service/application_functions.cpp index 7507263b2..63dd12a47 100644 --- a/src/core/hle/service/am/service/application_functions.cpp +++ b/src/core/hle/service/am/service/application_functions.cpp | |||
| @@ -275,7 +275,7 @@ Result IApplicationFunctions::GetCacheStorageMax(Out<u32> out_cache_storage_inde | |||
| 275 | std::vector<u8> nacp; | 275 | std::vector<u8> nacp; |
| 276 | R_TRY(system.GetARPManager().GetControlProperty(&nacp, m_applet->program_id)); | 276 | R_TRY(system.GetARPManager().GetControlProperty(&nacp, m_applet->program_id)); |
| 277 | 277 | ||
| 278 | std::unique_ptr<FileSys::RawNACP> raw_nacp(new FileSys::RawNACP{}); | 278 | auto raw_nacp = std::make_unique<FileSys::RawNACP>(); |
| 279 | std::memcpy(raw_nacp.get(), nacp.data(), std::min(sizeof(*raw_nacp), nacp.size())); | 279 | std::memcpy(raw_nacp.get(), nacp.data(), std::min(sizeof(*raw_nacp), nacp.size())); |
| 280 | 280 | ||
| 281 | *out_cache_storage_index_max = static_cast<u32>(raw_nacp->cache_storage_max_index); | 281 | *out_cache_storage_index_max = static_cast<u32>(raw_nacp->cache_storage_max_index); |