mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
core: apt: Fix GetStartupArgument operation order (#1862)
This commit is contained in:
parent
e92272ce31
commit
909e4b7e1f
1 changed files with 7 additions and 6 deletions
|
|
@ -1250,13 +1250,14 @@ void Module::APTInterface::GetStartupArgument(Kernel::HLERequestContext& ctx) {
|
||||||
std::vector<u8> param;
|
std::vector<u8> param;
|
||||||
bool exists = false;
|
bool exists = false;
|
||||||
|
|
||||||
if (auto arg = apt->applet_manager->ReceiveDeliverArg()) {
|
const auto& jump_parameters = apt->applet_manager->GetApplicationJumpParameters();
|
||||||
// TODO: This is a complete guess based on observations. It is unknown how the OtherMedia
|
|
||||||
// type is handled and how it interacts with the OtherApp type, and it is unknown if
|
|
||||||
// this (checking the jump parameters) is indeed the way the 3DS checks the types.
|
|
||||||
const auto& jump_parameters = apt->applet_manager->GetApplicationJumpParameters();
|
|
||||||
|
|
||||||
if (jump_parameters.Valid()) {
|
// TODO: This is a complete guess based on observations. It is unknown how the
|
||||||
|
// OtherMedia type is handled and how it interacts with the OtherApp type, and it is
|
||||||
|
// unknown if this (checking the jump parameters) is indeed the way the 3DS checks the
|
||||||
|
// types.
|
||||||
|
if (jump_parameters.Valid()) {
|
||||||
|
if (auto arg = apt->applet_manager->ReceiveDeliverArg()) {
|
||||||
param = std::move(arg->param);
|
param = std::move(arg->param);
|
||||||
|
|
||||||
switch (startup_argument_type) {
|
switch (startup_argument_type) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue