summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-21 16:59:37 +0200
committerLioncash <mathew1800@gmail.com>2018-08-21 17:03:14 +0200
commit8dd9cb98ce03bb1fb934fc6fa668e92826449901 (patch)
treed111847fd2fd9473ab9939acb2656124e276907c /src
parentMerge pull request #1143 from lioncash/inc (diff)
downloadyuzu-8dd9cb98ce03bb1fb934fc6fa668e92826449901.tar
yuzu-8dd9cb98ce03bb1fb934fc6fa668e92826449901.tar.gz
yuzu-8dd9cb98ce03bb1fb934fc6fa668e92826449901.tar.bz2
yuzu-8dd9cb98ce03bb1fb934fc6fa668e92826449901.tar.lz
yuzu-8dd9cb98ce03bb1fb934fc6fa668e92826449901.tar.xz
yuzu-8dd9cb98ce03bb1fb934fc6fa668e92826449901.tar.zst
yuzu-8dd9cb98ce03bb1fb934fc6fa668e92826449901.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/am/am.cpp7
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 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <array>
#include <cinttypes>
#include <stack>
#include "core/core.h"
@@ -625,16 +626,16 @@ IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationF
}
void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) {
- constexpr u8 data[0x88] = {
+ constexpr std::array<u8, 0x88> data{{
0xca, 0x97, 0x94, 0xc7, // Magic
1, 0, 0, 0, // IsAccountSelected (bool)
1, 0, 0, 0, // User Id (word 0)
0, 0, 0, 0, // User Id (word 1)
0, 0, 0, 0, // User Id (word 2)
0, 0, 0, 0 // User Id (word 3)
- };
+ }};
- std::vector<u8> buffer(data, data + sizeof(data));
+ std::vector<u8> buffer(data.begin(), data.end());
IPC::ResponseBuilder rb{ctx, 2, 0, 1};