mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-23 11:32:01 +00:00
2989c163a8
* editorconfig: Add default charset * Change file encoding from UTF-8-BOM to UTF-8
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using LibHac.Ncm;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Arp
|
|
{
|
|
class ApplicationLaunchProperty
|
|
{
|
|
public ulong TitleId;
|
|
public int Version;
|
|
public byte BaseGameStorageId;
|
|
public byte UpdateGameStorageId;
|
|
#pragma warning disable CS0649 // Field is never assigned to
|
|
public short Padding;
|
|
#pragma warning restore CS0649
|
|
|
|
public static ApplicationLaunchProperty Default
|
|
{
|
|
get
|
|
{
|
|
return new ApplicationLaunchProperty
|
|
{
|
|
TitleId = 0x00,
|
|
Version = 0x00,
|
|
BaseGameStorageId = (byte)StorageId.BuiltInSystem,
|
|
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
|
|
{
|
|
TitleId = context.Device.Processes.ActiveApplication.ProgramId,
|
|
Version = 0x00,
|
|
BaseGameStorageId = (byte)StorageId.BuiltInSystem,
|
|
UpdateGameStorageId = (byte)StorageId.None,
|
|
};
|
|
}
|
|
}
|
|
}
|