2019-09-10 02:55:28 -07:00
|
|
|
|
using Ryujinx.HLE.FileSystem;
|
|
|
|
|
|
2019-09-18 17:45:11 -07:00
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Arp
|
2019-09-10 02:55:28 -07:00
|
|
|
|
{
|
|
|
|
|
class ApplicationLaunchProperty
|
|
|
|
|
{
|
2020-01-12 03:15:17 -08:00
|
|
|
|
public ulong TitleId;
|
2019-09-10 02:55:28 -07:00
|
|
|
|
public int Version;
|
|
|
|
|
public byte BaseGameStorageId;
|
|
|
|
|
public byte UpdateGameStorageId;
|
2020-04-20 14:59:59 -07:00
|
|
|
|
#pragma warning disable CS0649
|
2019-09-10 02:55:28 -07:00
|
|
|
|
public short Padding;
|
2020-04-20 14:59:59 -07:00
|
|
|
|
#pragma warning restore CS0649
|
2019-09-10 02:55:28 -07:00
|
|
|
|
|
|
|
|
|
public static ApplicationLaunchProperty Default
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
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.
|
|
|
|
|
// For now we can hardcode values, and fix it after GetApplicationLaunchProperty is implemented.
|
|
|
|
|
|
|
|
|
|
return new ApplicationLaunchProperty
|
|
|
|
|
{
|
2020-01-12 03:15:17 -08:00
|
|
|
|
TitleId = context.Device.System.TitleId,
|
2019-09-10 02:55:28 -07:00
|
|
|
|
Version = 0x00,
|
|
|
|
|
BaseGameStorageId = (byte)StorageId.NandSystem,
|
|
|
|
|
UpdateGameStorageId = (byte)StorageId.None
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|