Fix helper
This commit is contained in:
parent
e3e3365447
commit
50226692bd
3 changed files with 15 additions and 13 deletions
|
@ -173,7 +173,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc
|
||||||
/*
|
/*
|
||||||
if (nn::arp::detail::IReader::GetApplicationLaunchProperty() == 0xCC9D) // InvalidProcessId
|
if (nn::arp::detail::IReader::GetApplicationLaunchProperty() == 0xCC9D) // InvalidProcessId
|
||||||
{
|
{
|
||||||
_applicationLaunchProperty = ApplicationLaunchPropertyHelper.GetDefault();
|
_applicationLaunchProperty = ApplicationLaunchProperty.GetDefault();
|
||||||
|
|
||||||
return ResultCode.InvalidArgument;
|
return ResultCode.InvalidArgument;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
namespace Ryujinx.HLE.HOS.Services.Arp
|
using Ryujinx.HLE.FileSystem;
|
||||||
|
|
||||||
|
namespace Ryujinx.HLE.HOS.Services.Arp
|
||||||
{
|
{
|
||||||
class ApplicationLaunchProperty
|
class ApplicationLaunchProperty
|
||||||
{
|
{
|
||||||
|
@ -7,5 +9,16 @@
|
||||||
public byte BaseGameStorageId;
|
public byte BaseGameStorageId;
|
||||||
public byte UpdateGameStorageId;
|
public byte UpdateGameStorageId;
|
||||||
public short Padding;
|
public short Padding;
|
||||||
|
|
||||||
|
public static ApplicationLaunchProperty GetDefault()
|
||||||
|
{
|
||||||
|
return new ApplicationLaunchProperty
|
||||||
|
{
|
||||||
|
TitleId = 0x00,
|
||||||
|
Version = 0x00,
|
||||||
|
BaseGameStorageId = (byte)StorageId.NandSystem,
|
||||||
|
UpdateGameStorageId = (byte)StorageId.None
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,17 +7,6 @@ namespace Ryujinx.HLE.HOS.Services.Arp
|
||||||
{
|
{
|
||||||
static class ApplicationLaunchPropertyHelper
|
static class ApplicationLaunchPropertyHelper
|
||||||
{
|
{
|
||||||
public static ApplicationLaunchProperty GetDefault()
|
|
||||||
{
|
|
||||||
return new ApplicationLaunchProperty
|
|
||||||
{
|
|
||||||
TitleId = 0x00,
|
|
||||||
Version = 0x00,
|
|
||||||
BaseGameStorageId = (byte)StorageId.NandSystem,
|
|
||||||
UpdateGameStorageId = (byte)StorageId.None
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public static ApplicationLaunchProperty GetByPid(ServiceCtx context)
|
public static ApplicationLaunchProperty GetByPid(ServiceCtx context)
|
||||||
{
|
{
|
||||||
// TODO: Handle ApplicationLaunchProperty as array when pid will be supported and return the right item.
|
// TODO: Handle ApplicationLaunchProperty as array when pid will be supported and return the right item.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue