diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/service/application_functions.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/service/am/service/application_functions.cpp b/src/core/hle/service/am/service/application_functions.cpp index fe37083f3..7507263b2 100644 --- a/src/core/hle/service/am/service/application_functions.cpp +++ b/src/core/hle/service/am/service/application_functions.cpp | |||
| @@ -15,9 +15,9 @@ | |||
| 15 | #include "core/hle/service/cmif_serialization.h" | 15 | #include "core/hle/service/cmif_serialization.h" |
| 16 | #include "core/hle/service/filesystem/filesystem.h" | 16 | #include "core/hle/service/filesystem/filesystem.h" |
| 17 | #include "core/hle/service/filesystem/save_data_controller.h" | 17 | #include "core/hle/service/filesystem/save_data_controller.h" |
| 18 | #include "core/hle/service/glue/glue_manager.h" | ||
| 18 | #include "core/hle/service/ns/ns.h" | 19 | #include "core/hle/service/ns/ns.h" |
| 19 | #include "core/hle/service/sm/sm.h" | 20 | #include "core/hle/service/sm/sm.h" |
| 20 | #include "core/hle/service/glue/glue_manager.h" | ||
| 21 | 21 | ||
| 22 | namespace Service::AM { | 22 | namespace Service::AM { |
| 23 | 23 | ||
| @@ -275,13 +275,13 @@ 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 | FileSys::RawNACP raw_nacp{}; | 278 | std::unique_ptr<FileSys::RawNACP> raw_nacp(new FileSys::RawNACP{}); |
| 279 | std::memcpy(&raw_nacp, 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); |
| 282 | *out_max_journal_size = static_cast<u64>(raw_nacp.cache_storage_data_and_journal_max_size); | 282 | *out_max_journal_size = static_cast<u64>(raw_nacp->cache_storage_data_and_journal_max_size); |
| 283 | 283 | ||
| 284 | R_SUCCEED(); | 284 | R_SUCCEED(); |
| 285 | } | 285 | } |
| 286 | 286 | ||
| 287 | Result IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(s64 unused) { | 287 | Result IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(s64 unused) { |