Fix helper

This commit is contained in:
Ac_K 2019-09-10 06:19:07 +02:00
parent e3e3365447
commit 50226692bd
3 changed files with 15 additions and 13 deletions

View file

@ -173,7 +173,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc
/*
if (nn::arp::detail::IReader::GetApplicationLaunchProperty() == 0xCC9D) // InvalidProcessId
{
_applicationLaunchProperty = ApplicationLaunchPropertyHelper.GetDefault();
_applicationLaunchProperty = ApplicationLaunchProperty.GetDefault();
return ResultCode.InvalidArgument;
}

View file

@ -1,4 +1,6 @@
namespace Ryujinx.HLE.HOS.Services.Arp
using Ryujinx.HLE.FileSystem;
namespace Ryujinx.HLE.HOS.Services.Arp
{
class ApplicationLaunchProperty
{
@ -7,5 +9,16 @@
public byte BaseGameStorageId;
public byte UpdateGameStorageId;
public short Padding;
public static ApplicationLaunchProperty GetDefault()
{
return new ApplicationLaunchProperty
{
TitleId = 0x00,
Version = 0x00,
BaseGameStorageId = (byte)StorageId.NandSystem,
UpdateGameStorageId = (byte)StorageId.None
};
}
}
}

View file

@ -7,17 +7,6 @@ namespace Ryujinx.HLE.HOS.Services.Arp
{
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)
{
// TODO: Handle ApplicationLaunchProperty as array when pid will be supported and return the right item.