mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-27 00:19:41 +00:00
4738113f29
* chore : disable unwanted warnings and minor code cleanup * chore : remove more warnings * fix : reorder struct correctly * fix : restore _isKernel and remove useless comment * fix : copy/paste error * fix : restore CallMethod call * fix : whitespace * chore : clean using * feat : remove warnings * fix : simplify warning removal on struct * fix : revert fields deletion and code clean up * fix : re-add RE value * fix : typo
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using Ryujinx.HLE.FileSystem;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Arp
|
|
{
|
|
class ApplicationLaunchProperty
|
|
{
|
|
public ulong TitleId;
|
|
public int Version;
|
|
public byte BaseGameStorageId;
|
|
public byte UpdateGameStorageId;
|
|
#pragma warning disable CS0649
|
|
public short Padding;
|
|
#pragma warning restore CS0649
|
|
|
|
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
|
|
{
|
|
TitleId = context.Device.System.TitleId,
|
|
Version = 0x00,
|
|
BaseGameStorageId = (byte)StorageId.NandSystem,
|
|
UpdateGameStorageId = (byte)StorageId.None
|
|
};
|
|
}
|
|
}
|
|
} |