diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index c524e7a48..78d551a8a 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <array> | ||
| 5 | #include <cinttypes> | 6 | #include <cinttypes> |
| 6 | #include <stack> | 7 | #include <stack> |
| 7 | #include "core/core.h" | 8 | #include "core/core.h" |
| @@ -625,16 +626,16 @@ IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationF | |||
| 625 | } | 626 | } |
| 626 | 627 | ||
| 627 | void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) { | 628 | void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) { |
| 628 | constexpr u8 data[0x88] = { | 629 | constexpr std::array<u8, 0x88> data{{ |
| 629 | 0xca, 0x97, 0x94, 0xc7, // Magic | 630 | 0xca, 0x97, 0x94, 0xc7, // Magic |
| 630 | 1, 0, 0, 0, // IsAccountSelected (bool) | 631 | 1, 0, 0, 0, // IsAccountSelected (bool) |
| 631 | 1, 0, 0, 0, // User Id (word 0) | 632 | 1, 0, 0, 0, // User Id (word 0) |
| 632 | 0, 0, 0, 0, // User Id (word 1) | 633 | 0, 0, 0, 0, // User Id (word 1) |
| 633 | 0, 0, 0, 0, // User Id (word 2) | 634 | 0, 0, 0, 0, // User Id (word 2) |
| 634 | 0, 0, 0, 0 // User Id (word 3) | 635 | 0, 0, 0, 0 // User Id (word 3) |
| 635 | }; | 636 | }}; |
| 636 | 637 | ||
| 637 | std::vector<u8> buffer(data, data + sizeof(data)); | 638 | std::vector<u8> buffer(data.begin(), data.end()); |
| 638 | 639 | ||
| 639 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 640 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 640 | 641 | ||