mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-22 18:55:41 +01:00
service: Change unique_ptr to make_unique in GetCacheStorageMax
This commit is contained in:
parent
bc5ae04ea0
commit
8bbb44a74e
@ -275,7 +275,7 @@ Result IApplicationFunctions::GetCacheStorageMax(Out<u32> out_cache_storage_inde
|
|||||||
std::vector<u8> nacp;
|
std::vector<u8> nacp;
|
||||||
R_TRY(system.GetARPManager().GetControlProperty(&nacp, m_applet->program_id));
|
R_TRY(system.GetARPManager().GetControlProperty(&nacp, m_applet->program_id));
|
||||||
|
|
||||||
std::unique_ptr<FileSys::RawNACP> raw_nacp(new FileSys::RawNACP{});
|
auto raw_nacp = std::make_unique<FileSys::RawNACP>();
|
||||||
std::memcpy(raw_nacp.get(), nacp.data(), std::min(sizeof(*raw_nacp), nacp.size()));
|
std::memcpy(raw_nacp.get(), nacp.data(), std::min(sizeof(*raw_nacp), nacp.size()));
|
||||||
|
|
||||||
*out_cache_storage_index_max = static_cast<u32>(raw_nacp->cache_storage_max_index);
|
*out_cache_storage_index_max = static_cast<u32>(raw_nacp->cache_storage_max_index);
|
||||||
|
Loading…
Reference in New Issue
Block a user