mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-24 09:20:58 +01:00
Merge pull request #1146 from lioncash/am
am: Utilize std::array within PopLaunchParameter()
This commit is contained in:
commit
c2695aa2eb
1 changed files with 4 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#include <array>
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
#include <stack>
|
#include <stack>
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
|
@ -625,16 +626,16 @@ IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationF
|
||||||
}
|
}
|
||||||
|
|
||||||
void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) {
|
void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) {
|
||||||
constexpr u8 data[0x88] = {
|
constexpr std::array<u8, 0x88> data{{
|
||||||
0xca, 0x97, 0x94, 0xc7, // Magic
|
0xca, 0x97, 0x94, 0xc7, // Magic
|
||||||
1, 0, 0, 0, // IsAccountSelected (bool)
|
1, 0, 0, 0, // IsAccountSelected (bool)
|
||||||
1, 0, 0, 0, // User Id (word 0)
|
1, 0, 0, 0, // User Id (word 0)
|
||||||
0, 0, 0, 0, // User Id (word 1)
|
0, 0, 0, 0, // User Id (word 1)
|
||||||
0, 0, 0, 0, // User Id (word 2)
|
0, 0, 0, 0, // User Id (word 2)
|
||||||
0, 0, 0, 0 // User Id (word 3)
|
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};
|
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue